Skip to content

Commit

Permalink
Reorder logic check to do light part of AND logic first
Browse files Browse the repository at this point in the history
  • Loading branch information
ijiraq committed Oct 21, 2015
1 parent 4f21b8b commit bf46fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/vcp
Expand Up @@ -170,7 +170,7 @@ def copy(source_name, destination_name, exclude=None, include=None, interrogate=
if ans != 'y':
raise Exception("File exists")

if access(destination_name, os.F_OK) and not overwrite:
if not overwrite and access(destination_name, os.F_OK):
### check if the MD5 of dest and source mathc, if they do then skip
if get_md5(destination_name) == get_md5(source_name):
logging.info("%s matches %s, skipping" % (source_name, destination_name))
Expand Down

0 comments on commit bf46fca

Please sign in to comment.