Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'completeness': 0.07; 'subject:file': 0.07; 'prepended': 0.09; 'received:155': 0.09; 'client,': 0.16; 'collapse': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'received:155.180': 0.16; 'received:155.180.234': 0.16; 'received:159.53': 0.16; 'received:169.70': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:svr.bankone.net': 0.16; 'securities,': 0.16; 'subject: \n ': 0.16; 'subject:based': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'duplicate': 0.17; 'to:name:python- list@python.org': 0.20; 'received:169.254': 0.24; 'header:In- Reply-To:1': 0.25; 'creating': 0.26; 'accuracy': 0.27; 'tree': 0.27; 'reply.': 0.28; 'behavior.': 0.29; 'mind,': 0.29; 'unique,': 0.29; 'received:169': 0.29; 'this.': 0.29; 'relative': 0.30; 'header:Received:8': 0.30; 'file': 0.32; 'structure': 0.32; 'directory,': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'thanks': 0.34; 'path': 0.35; 'especially': 0.35; 'doing': 0.35; 'something': 0.35; 'there': 0.35; 'charset:us-ascii': 0.36; 'why': 0.37; 'quite': 0.37; 'subject:: ': 0.38; 'store': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'think': 0.40; 'information,': 0.63; 'url:email': 0.63; 'making': 0.64; 'legal': 0.65; 'carried': 0.65; 'subject': 0.66; 'purchase': 0.67; 'sale': 0.76; 'received:169.254.8': 0.84; 'subject:\t': 0.91 X-DKIM: OpenDKIM Filter v2.1.3 sz2.jpmchase.com q6JJ2juK012699 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpmorgan.com; s=smtpout; t=1342724566; bh=VHp30cDTryexJNFjCpAXSQHaiu5G0MJ5L0av5mYGdJE=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=kgIbzwVvgvDBlvE3+m4JmxrQW6B2oFiyf6amwbr72qHJ+FsmjKm6Tb05YsxxMenDN w2PQE/85oAmy/AWe6VC4mhPcXu6xv5KrZlZmhu49d96fD+0DRVvTvWziHZJaWyV8q2 fCFYcPC/AgOhJ1v9CKQbzQwIylJYnH6UvBe7wrnU= From: "Prasad, Ramit" To: "python-list@python.org" Subject: RE: Finding duplicate file names and modifying them based on elements of the path Thread-Topic: Finding duplicate file names and modifying them based on elements of the path Thread-Index: AQHNZeBVG/s2i5hIP0epxJrI2t9JNZcw9UXw Date: Thu, 19 Jul 2012 19:02:37 +0000 References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.79.47] Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DLP-FWD: Yes Content-Type: text/plain; charset="us-ascii" 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342724574 news.xs4all.nl 6968 [2001:888:2000:d::a6]:35092 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25643 > > I am making the assumption that you intend to collapse the directory=0D= =0A> > tree and store each file in the same directory, otherwise I can't th= ink=0D=0A> > of why you need to do this=2E=0D=0A> =0D=0A> Hi Simon, thanks = for the reply=2E It's not quite this - what I am doing=0D=0A> is creating a= zip file with relative path names, and if there are=0D=0A> duplicate files= the parts of the path that are not be carried over=0D=0A> need to get prep= ended to the file names to make then unique,=0D=0A=0D=0ADepending on the fi= le system of the client, you can hit file name=0D=0Alength limits=2E I woul= d think it would be better to just create=0D=0Athe full structure in the zi= p=2E=0D=0A=0D=0AJust something to keep in mind, especially if you see funky= behavior=2E=0D=0A=0D=0ARamit=0D=0A=0D=0AThis email is confidential and sub= ject to important disclaimers and=0D=0Aconditions including on offers for t= he purchase or sale of=0D=0Asecurities, accuracy and completeness of inform= ation, viruses,=0D=0Aconfidentiality, legal privilege, and legal entity dis= claimers,=0D=0Aavailable at http://www=2Ejpmorgan=2Ecom/pages/disclosures/e= mail=2E