Skip to content

Commit

Permalink
Fixed copyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
elibroftw committed Jul 29, 2019
1 parent f14bfc8 commit ad0b57a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music_caster.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def play_file(file_path, position=0, autoplay=True):
else:
drive = file_path[:3]
file_path_obj = Path(file_path)
if drive != os.getcwd():
if drive != os.getcwd().replace('\\', '/'):
new_file_path = f'{cc_music_dir}/{file_path_obj.name}'
copyfile(file_path, new_file_path)
else: new_file_path = file_path
Expand Down
Binary file added resources/Screenshot (2).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/Screenshot (4).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ad0b57a

Please sign in to comment.