Subject: | Add support for (removing) long path names (rmtree) on Windows |
Date: | Thu, 11 Jun 2015 11:56:35 +0200 |
To: | bug-File-Path [...] rt.cpan.org |
From: | Bram Stappers <bram.stappers [...] gmail.com> |
Dear File-Path maintainer(s),
Thank you for providing such a fine module!
I am using Perl on Windows and have a problem with removing files with long
path names with rmtree. The problem is described here:
http://stringstream.blogspot.nl/2014/11/perl-long-paths-issue-in-windows.html
When trying to remove file paths with a name that exceeds the MAX_PATH the
removal fails. Subsequently, the parent directory can obviously not be
removed since it is not empty.
I understand that this is not a File-Path issue per se since the problem
goes all the way down to 'unlink' (and perhaps 'rmdir') of Perl itself.
Apparently, there is a module (
http://search.cpan.org/~rboisvert/Win32-LongPath-1.03/lib/Win32/LongPath.pm)
that offers support for this in the form of 'unlinkL' and 'rmdirL'
functions.
It would be really nice if File-Path could use the functions above on
Windows.
I have attached the relevant Perl/File-Path version information. I am using
(ActiveState) Perl on Windows XP and Windows 7 (but I would like it to work
on any Windows system with XP or later).
Let me know if you require more information.
Regards, Bram
Message body is not shown because sender requested not to inline it.