Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3703
| Date | 2011-04-20 14:02 +0000 |
|---|---|
| From | <jyoung79@kc.rr.com> |
| Subject | renaming files in OS X |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.647.1303308164.9059.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar
renaming files in OS X <jyoung79@kc.rr.com> - 2011-04-20 14:02 +0000 Re: renaming files in OS X Gnarlodious <gnarlodious@gmail.com> - 2011-04-20 07:59 -0700
csiph-web