Fix linting error in file_copy plugin

This commit is contained in:
Anders Ingemann 2016-12-09 08:38:34 +01:00
parent 876ea7bd85
commit 273b5e0183
No known key found for this signature in database
GPG key ID: 49C87973A14931A9

View file

@ -69,9 +69,4 @@ class FileCopyCommand(Task):
else:
shutil.copytree(src_path, final_destination)
if os.path.isfile(src_path) and os.path.isdir(final_destination):
dst = os.path.join(final_destination, os.path.basename(src_path))
else:
dst = final_destination
modify_path(info, file_entry['dst'], file_entry)