summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Geulette <s.geulette@imio.be>2013-02-01 13:42:50 (GMT)
committerStephan Geulette <s.geulette@imio.be>2013-02-01 13:42:50 (GMT)
commit7cdd669457e4a2e780923fc21edd68ae18f717bc (patch)
tree360826b59b87d8819715913f910d89c46d5305b2
parent95ec4e54fc58ba92b5deb6b56b6a0970ea643b36 (diff)
downloadcollective.dms.batchimport-7cdd669457e4a2e780923fc21edd68ae18f717bc.zip
collective.dms.batchimport-7cdd669457e4a2e780923fc21edd68ae18f717bc.tar.gz
collective.dms.batchimport-7cdd669457e4a2e780923fc21edd68ae18f717bc.tar.bz2
useful escape when testing
-rw-r--r--src/collective/dms/batchimport/batchimport.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/collective/dms/batchimport/batchimport.py b/src/collective/dms/batchimport/batchimport.py
index 7dbc183..a0e14c7 100644
--- a/src/collective/dms/batchimport/batchimport.py
+++ b/src/collective/dms/batchimport/batchimport.py
@@ -118,6 +118,8 @@ class BatchImporter(BrowserView):
return 'OK (%s imported files, %s unprocessed files)' % (nb_imports, nb_errors)
def mark_as_processed(self, filepath):
+ # if the processed folder is the same as the input folder, we dont move files
+ if self.processed_fs_root_directory == self.fs_root_directory: return
processed_filepath = os.path.join(self.processed_fs_root_directory,
filepath[len(self.fs_root_directory):])
if not os.path.exists(os.path.dirname(processed_filepath)):