renaming files in OS X

jyoung79 at jyoung79 at
Wed Apr 20 10:02:40 EDT 2011


I'm considering using os.rename or shutil for renaming 
files on OS X (Snow Leopard).  However, I've read that 
shutil doesn't copy the resource fork or metadata for 
the files on OS X.  I'm not sure about os.rename though.  
I need to keep the resource fork and metadata.  Is it 
better if I just use os.system('mv …') or is os.rename 
safe to use?



More information about the Python-list mailing list