Re: creating zipfile with symlinks

2016-03-04 Thread Michael Torrie
On 03/04/2016 05:18 AM, Larry Martell wrote: > Unfortunately very slow - around 8 minutes to zip a 7GB dir using the > command line zip vs. 13 seconds with the python zipfile module. And likely Python's zipfile is just giving up and storing the file without compression. What does unzip -v say

Re: creating zipfile with symlinks

2016-03-04 Thread Wildman via Python-list
On Fri, 04 Mar 2016 13:31:52 -0700, Ian Kelly wrote: > On Fri, Mar 4, 2016 at 11:50 AM, crankypuss wrote: >> I don't know about that, but you've certainly shown that what I was told >> about this group being helpful and non-combative is bullshit. > > Look in a mirror

Re: creating zipfile with symlinks

2016-03-04 Thread Peter Otten
Larry Martell wrote: > On Fri, Mar 4, 2016 at 9:22 AM, Gene Heskett wrote: >> On Friday 04 March 2016 07:18:57 Larry Martell wrote: >> >>> On Thu, Mar 3, 2016 at 10:32 PM, Larry Martell >> wrote: >>> > On Thu, Mar 3, 2016 at 4:58 PM, Chris Angelico

Re: creating zipfile with symlinks

2016-03-04 Thread Larry Martell
On Fri, Mar 4, 2016 at 9:22 AM, Gene Heskett wrote: > On Friday 04 March 2016 07:18:57 Larry Martell wrote: > >> On Thu, Mar 3, 2016 at 10:32 PM, Larry Martell > wrote: >> > On Thu, Mar 3, 2016 at 4:58 PM, Chris Angelico > wrote: >>

Re: creating zipfile with symlinks

2016-03-04 Thread Ian Kelly
On Fri, Mar 4, 2016 at 11:50 AM, crankypuss wrote: > I don't know about that, but you've certainly shown that what I was told > about this group being helpful and non-combative is bullshit. Look in a mirror much? -- https://mail.python.org/mailman/listinfo/python-list

Re: creating zipfile with symlinks

2016-03-04 Thread crankypuss
Grant Edwards wrote: > On 2016-03-04, crankypuss wrote: >> Larry Martell wrote: > [...] >>> Which I don't love as a solution. Anyone know a cleaner way to get >>> zipfile to zip the links? >> >> I don't even know what "zipfile" is, is that a Windows command? > > It's a

Re: creating zipfile with symlinks

2016-03-04 Thread Grant Edwards
On 2016-03-04, crankypuss wrote: > Larry Martell wrote: [...] >> Which I don't love as a solution. Anyone know a cleaner way to get >> zipfile to zip the links? > > I don't even know what "zipfile" is, is that a Windows command? It's a module in the Python standard

Re: creating zipfile with symlinks

2016-03-04 Thread Gene Heskett
On Friday 04 March 2016 07:18:57 Larry Martell wrote: > On Thu, Mar 3, 2016 at 10:32 PM, Larry Martell wrote: > > On Thu, Mar 3, 2016 at 4:58 PM, Chris Angelico wrote: > >> On Fri, Mar 4, 2016 at 8:38 AM, MRAB wrote: >

Re: creating zipfile with symlinks

2016-03-04 Thread Chris Angelico
On Fri, Mar 4, 2016 at 11:18 PM, Larry Martell wrote: > Unfortunately very slow - around 8 minutes to zip a 7GB dir using the > command line zip vs. 13 seconds with the python zipfile module. 13 seconds? That sounds wrong for 7GB. I doubt you can deflate that much data

Re: creating zipfile with symlinks

2016-03-04 Thread Larry Martell
On Thu, Mar 3, 2016 at 10:32 PM, Larry Martell wrote: > On Thu, Mar 3, 2016 at 4:58 PM, Chris Angelico wrote: >> On Fri, Mar 4, 2016 at 8:38 AM, MRAB wrote: >>> Is it even possible to zip a link? >>> >>> A quick search came

Re: creating zipfile with symlinks

2016-03-04 Thread Tim Golden
On 04/03/2016 11:03, crankypuss wrote: > Larry Martell wrote: > >> I have a script that creates zip files of dirs containing symlinks. I >> was surprised to find that the zipfiles have zipped the targets of the >> links as opposed to the links themselves, which is what I wanted and >> expected.

Re: creating zipfile with symlinks

2016-03-04 Thread crankypuss
Larry Martell wrote: > I have a script that creates zip files of dirs containing symlinks. I > was surprised to find that the zipfiles have zipped the targets of the > links as opposed to the links themselves, which is what I wanted and > expected. Googling I found this: > >

Re: creating zipfile with symlinks

2016-03-03 Thread Larry Martell
On Thu, Mar 3, 2016 at 4:58 PM, Chris Angelico wrote: > On Fri, Mar 4, 2016 at 8:38 AM, MRAB wrote: >> Is it even possible to zip a link? >> >> A quick search came up with this: >> >> Are hard links possible within a zip archive? >>

Re: creating zipfile with symlinks

2016-03-03 Thread Chris Angelico
On Fri, Mar 4, 2016 at 8:38 AM, MRAB wrote: > Is it even possible to zip a link? > > A quick search came up with this: > > Are hard links possible within a zip archive? > http://stackoverflow.com/questions/8859616/are-hard-links-possible-within-a-zip-archive Hard

Re: creating zipfile with symlinks

2016-03-03 Thread MRAB
On 2016-03-03 20:58, Larry Martell wrote: On Thu, Mar 3, 2016 at 1:37 PM, Larry Martell wrote: I have a script that creates zip files of dirs containing symlinks. I was surprised to find that the zipfiles have zipped the targets of the links as opposed to the links

Re: creating zipfile with symlinks

2016-03-03 Thread Larry Martell
On Thu, Mar 3, 2016 at 1:37 PM, Larry Martell wrote: > I have a script that creates zip files of dirs containing symlinks. I > was surprised to find that the zipfiles have zipped the targets of the > links as opposed to the links themselves, which is what I wanted and >

creating zipfile with symlinks

2016-03-03 Thread Larry Martell
I have a script that creates zip files of dirs containing symlinks. I was surprised to find that the zipfiles have zipped the targets of the links as opposed to the links themselves, which is what I wanted and expected. Googling I found this: