Skip to content

Commit

Permalink
Merge pull request #33 from Nachtalb/ne/fix-copy-bug
Browse files Browse the repository at this point in the history
Fix file copying on unix devices
  • Loading branch information
Nachtalb authored Nov 26, 2018
2 parents 4787f6c + f30e240 commit e6f453b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changelog
2.0.3 (unreleased)
------------------

- Nothing changed yet.
- Fix file copying on unix devices


2.0.2 (2018-11-26)
Expand Down
2 changes: 1 addition & 1 deletion xenian/bot/uploaders/file_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def upload(self, file, filename: str = None, save_path: str = None, remove_after
if os.name == 'nt':
copy_outcome = subprocess.call(['copy', real_file, save_path], shell=True)
else:
copy_outcome = subprocess.call(['cp', real_file, save_path], shell=True)
copy_outcome = subprocess.call(['cp', real_file, save_path])

if copy_outcome != 0:
raise IOError(f'Copying file from {real_file} to {save_path} did not work.')
Expand Down

0 comments on commit e6f453b

Please sign in to comment.