Changeset 41 for trunk

Show
Ignore:
Timestamp:
09/07/2008 04:42:31 PM (4 months ago)
Author:
cmccurdy
Message:

realized shutil.copy tries to chmod the file after it writes it, which doesn't quite work with vfat filesystems; changed to shutil.copyfile

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/msync/playlist.py

    r39 r41  
    323323        if not os.path.exists(file_dir): 
    324324            os.makedirs(file_dir) 
    325         shutil.copy(file.filename, re.sub(tr[0], tr[1], fname)) 
     325        shutil.copyfile(file.filename, re.sub(tr[0], tr[1], fname)) 
    326326 
    327327        file.setDB(lib.db)