Skip to content
Snippets Groups Projects
Commit 27492e72 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 19d859be
No related branches found
No related tags found
No related merge requests found
...@@ -78,12 +78,12 @@ def get_parameters_fmwk_amvs(filename='/ships19/cloud/scratch/4TH_AMV_INTERCOMPA ...@@ -78,12 +78,12 @@ def get_parameters_fmwk_amvs(filename='/ships19/cloud/scratch/4TH_AMV_INTERCOMPA
class Files: class Files:
def __init__(self, files_path, file_time_span, pattern): def __init__(self, files_path, file_time_span, pattern):
self.flist = []
if os.path.isdir(files_path): if os.path.isdir(files_path):
self.flist = []
for path in Path(files_path).rglob(pattern): for path in Path(files_path).rglob(pattern):
self.flist.append(path) self.flist.append(path)
else: else:
self.flist = glob.glob(files_path + pattern) self.flist.append(files_path)
if len(self.flist) == 0: if len(self.flist) == 0:
raise GenericException('no matching files found in: ' + files_path + pattern) raise GenericException('no matching files found in: ' + files_path + pattern)
......
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