Finding duplicate file names and modifying them based on elements of the path
larry.martell at gmail.com
Thu Jul 19 21:06:20 CEST 2012
On Jul 19, 1:02 pm, "Prasad, Ramit" <ramit.pra... at jpmorgan.com> wrote:
> > > I am making the assumption that you intend to collapse the directory
> > > tree and store each file in the same directory, otherwise I can't think
> > > of why you need to do this.
> > Hi Simon, thanks for the reply. It's not quite this - what I am doing
> > is creating a zip file with relative path names, and if there are
> > duplicate files the parts of the path that are not be carried over
> > need to get prepended to the file names to make then unique,
> Depending on the file system of the client, you can hit file name
> length limits. I would think it would be better to just create
> the full structure in the zip.
> Just something to keep in mind, especially if you see funky behavior.
Thanks, but it's not what the client wants.
More information about the Python-list