Skip to content

Instantly share code, notes, and snippets.

@cviebrock
Created March 22, 2011 14:51
Show Gist options
  • Select an option

  • Save cviebrock/881325 to your computer and use it in GitHub Desktop.

Select an option

Save cviebrock/881325 to your computer and use it in GitHub Desktop.
--- main.py.ORIG 2011-03-22 10:39:57.000000000 -0400
+++ main.py 2011-03-22 10:40:03.000000000 -0400
@@ -71,7 +71,11 @@
raise ValueError("Config value for move_files_destination cannot be None if move_files_enabled is True")
try:
- return cnamer.newPath(destDir, getPathPreview = getPathPreview)
+ if Config['copy_instead_of_move']:
+ return cnamer.newPath(destDir, getPathPreview = getPathPreview, False, True )
+ else:
+ return cnamer.newPath(destDir, getPathPreview = getPathPreview)
+
except OSError, e:
warn(unicode(e))
--- config_defaults.py.ORIG 2011-03-22 10:40:28.000000000 -0400
+++ config_defaults.py 2011-03-22 10:27:41.000000000 -0400
@@ -307,4 +307,7 @@
# String to join multiple number
'episode_separator': '-',
+ # Copy instead of move
+ 'copy_instead_of_move': False,
+
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment