Skip to content
Snippets Groups Projects
Commit 6d1da058 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

test for Arby on existence of file to move

parent 32b33bc4
No related branches found
No related tags found
No related merge requests found
...@@ -559,6 +559,10 @@ class CycleControl(dict): ...@@ -559,6 +559,10 @@ class CycleControl(dict):
for file in os.listdir(sourcedir): for file in os.listdir(sourcedir):
file = os.path.join(sourcedir,file) file = os.path.join(sourcedir,file)
if not os.path.exists(file:
msg = "Cannot find requested file to move: %s " % file ; logging.debug(msg)
sys.exit(2)
if os.path.isdir(file): # skip dirs if os.path.isdir(file): # skip dirs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment