Skip to content
Snippets Groups Projects
Commit 3a0bacfc authored by Wainer Vandelli's avatar Wainer Vandelli
Browse files

Make the file selection a list of Unix regular expressions

parent 05bb7288
No related branches found
No related tags found
No related merge requests found
...@@ -63,8 +63,8 @@ DirList: ['/data1', ...@@ -63,8 +63,8 @@ DirList: ['/data1',
# Unix pathname pattern for file selection # Unix pathname pattern for file selection
# FilePattern: '*[.data,.out]' # FilePattern: '[*.data, *.out]'
DataFilePattern: '*.data' DataFilePattern: '[*.data,]'
# Number of files to be deleted before to update the list of files to be copied # Number of files to be deleted before to update the list of files to be copied
nDel: 2 nDel: 2
......
...@@ -243,7 +243,7 @@ class ManagerThread(threading.Thread): ...@@ -243,7 +243,7 @@ class ManagerThread(threading.Thread):
#### new .data files from current run #### new .data files from current run
#### .data files from current run, locked when taken by CopyThread #### .data files from current run, locked when taken by CopyThread
files = glob.glob(os.path.join(folder, self.DataFilePattern)) files = sum([glob.glob(os.path.join(folder,p)) for p in self.DataFilePattern],[])
self.logInfo = {'file':self.logger.findCaller()[0],'line':self.logger.findCaller()[1]} self.logInfo = {'file':self.logger.findCaller()[0],'line':self.logger.findCaller()[1]}
self.logger.debug('%d files found on folder %s' % (len(files), folder), extra = self.logInfo) self.logger.debug('%d files found on folder %s' % (len(files), folder), extra = self.logInfo)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment