擅长:python、mysql、java
<p>我发帖,当然很晚才有答案,但因为我也有同样的问题,所以有个窍门</p>
<p>也许这是因为您扫描目录中的csv文件并用python对它们进行摘要。在</p>
<p>我的诀窍是在上传时不带文件:</p>
<p>使用<a href="http://pyinotify.sourceforge.net/" rel="nofollow">inotify</a>系统检查关闭的文件。在</p>
<p>或者对于类似cron的进程,创建一个“中间房间”:ftp directory>;process directory并使用bash技巧:</p>
<pre><code>source=directorySource
destination=directoryDestination
cd $source
for file in `find $source -mtime +1 -print `
do
mv $file $destination$file
done
</code></pre>