Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3703
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!goblin3!goblin.stu.neva.ru!news-1.dfn.de!news.uni-weimar.de!news-2.dfn.de!news.dfn.de!newsfeed.straub-nv.de!nuzba.szn.dk!pnx.dk!amsnews11.chello.com!news2.euro.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <jyoung79@kc.rr.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.159 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.70; '*S*': 0.02; 'though.': 0.07; 'subject:files': 0.09; 'shutil': 0.16; "i'm": 0.26; "doesn't": 0.28; 'thanks.': 0.28; 'received:75': 0.30; 'use?': 0.31; 'however,': 0.31; 'to:addr:python-list': 0.32; "i've": 0.33; 'using': 0.34; 'received:rr.com': 0.35; 'received:mail.rr.com': 0.35; 'hello,': 0.36; 'files': 0.38; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.60; 'safe': 0.65; '(snow': 0.84; 'jay': 0.84; 'metadata': 0.84 |
| Authentication-Results | cdptpa-omtalb.mail.rr.com smtp.user=jyoung79@kc.rr.com; auth=pass (LOGIN) |
| X-Authority-Analysis | v=1.1 cv=iNGAwgbhgycWJLi8POkSIlT3dR7ZbIoImwFDelgsXY0= c=1 sm=0 a=IkcTkHD0fZMA:10 a=K554dYhCzBU2GcVm53UA:9 a=QEXdDO2ut3YA:10 a=Wm8N4nQisXyE0hqNaTxyMw==:117 |
| X-Cloudmark-Score | 0 |
| Date | Wed, 20 Apr 2011 14:02:40 +0000 |
| From | <jyoung79@kc.rr.com> |
| To | python-list@python.org |
| Subject | renaming files in OS X |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Priority | 3 (Normal) |
| Sensitivity | Normal |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.647.1303308164.9059.python-list@python.org> (permalink) |
| Lines | 13 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1303308164 news.xs4all.nl 81478 [::ffff:82.94.164.166]:46851 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:3703 |
Show key headers only | View raw
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