Skip to content

Commit

Permalink
use shutil.move instead of os.rename
Browse files Browse the repository at this point in the history
  • Loading branch information
slhck committed Oct 9, 2017
1 parent 5b63056 commit 035e4df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
@@ -1,5 +1,10 @@
# History

0.7.3 (2017-10-09)
------------------

- Use shutil.move instead of os.rename for cross-FS compatibility

0.7.2 (2017-09-17)
------------------

Expand Down
2 changes: 1 addition & 1 deletion ffmpeg_normalize/__init__.py
@@ -1 +1 @@
__version__ = "0.7.2"
__version__ = "0.7.3"
5 changes: 3 additions & 2 deletions ffmpeg_normalize/__main__.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
"""
ffmpeg-normalize 0.7.2
ffmpeg-normalize 0.7.3
ffmpeg script for normalizing audio.
Expand Down Expand Up @@ -92,6 +92,7 @@
import logging
import tempfile
import shlex
import shutil

from docopt import docopt

Expand Down Expand Up @@ -361,7 +362,7 @@ def move_tmp_file(self):
Move back the temporary file to the original, overwriting it
"""
logger.debug("Moving " + str(self.output_file) + " to " + str(self.input_file))
os.rename(self.output_file, self.input_file)
shutil.move(self.output_file, self.input_file)

class FFmpegNormalize(object):
"""
Expand Down

0 comments on commit 035e4df

Please sign in to comment.