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: 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 Hello, I'm considering using os.rename or shutil for renaming=20 files on OS X (Snow Leopard). However, I've read that=20 shutil doesn't copy the resource fork or metadata for=20 the files on OS X. I'm not sure about os.rename though. =20 I need to keep the resource fork and metadata. Is it=20 better if I just use os.system('mv =E2=80=A6') or is os.rename=20 safe to use? Thanks. Jay