morgon has asked for the wisdom of the Perl Monks concerning the following question:
I have a problem using Archive::Zip on Windows Server 2003.
The problem is that when doing an "addTree" Archive::Zip walks the tree using File::Find which in my case dies in a particular directory because it fails to do chdir ../../../../../../../../../../../..
The interesting thing now is that when I open a cmd.exe-shell and navigate to this directory and try to do a "cd ../../<and so on>" it also fails, so it seems to me I am running into a Windows-specific limitation.
The path-length of the directory where this problem occurs is 225 characters and the length of the ../..-part is 35 characters, so together it is 260...
I have made some experiments and it seems to me that on Windows if you are in a directory and you try to do a "cd <upwards-only>" then that fails if the pathlength of the directory plus the path-length of the upward-path exceeds 260 (or so).
Is that really true?
If that is the case, how would you work around it when using Archive::Zip or File::Find?
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Find problem on Windows
by ww (Archbishop) on Jan 20, 2012 at 13:51 UTC | |
by morgon (Priest) on Jan 20, 2012 at 14:17 UTC | |
|
Re: File::Find problem on Windows
by lune (Pilgrim) on Jan 20, 2012 at 13:58 UTC | |
by locked_user sundialsvc4 (Abbot) on Jan 20, 2012 at 14:34 UTC | |
by CountZero (Bishop) on Jan 20, 2012 at 23:33 UTC | |
|
Re: File::Find problem on Windows
by raybies (Chaplain) on Jan 20, 2012 at 13:54 UTC | |
by morgon (Priest) on Jan 20, 2012 at 14:14 UTC |