renaming files in OS X

jyoung79 at kc.rr.com jyoung79 at kc.rr.com
Wed Apr 20 10:02:40 EDT 2011


Hello,
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?
Thanks.
Jay


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /