git.fiddlerwoaroof.com
Browse code

switch from linking to copying

fiddlerwoaroof authored on 14/08/2015 18:47:15
Showing 1 changed files
... ...
@@ -36,6 +36,7 @@ Usage: find -name '*.mp3' -o '*.m4a' . . . | python sorter.py <destination_direc
36 36
 Requires mutagen for tag handling (and, therefore, taglib)'''
37 37
 
38 38
 import os
39
+import shutil
39 40
 import string
40 41
 import mutagen
41 42
 import argparse
... ...
@@ -122,7 +123,7 @@ for line in sys.stdin:
122 123
                 raise
123 124
 
124 125
         print os.path.join(path, name)
125
-        os.link(line, os.path.join(path, name))
126
+        shutil.copy(line, os.path.join(path, name))
126 127
     except Exception, e:
127 128
         print >> sys.stderr, 'Error Processing: %s' % line,e
128 129
         print 'Error Processing: %s' % line,e