in reply to Contacting the author of a module?
I don't use Windows, but I note that the documentation for Win32::LongPath doesn't show renameL as a method you can call on the directory handle returned by opendirL, but only shows its use as a function - and the examples are all using absolute paths:
# should work renameL ('c:/file', 'c:/newfile'); # fails, can't move file to directory renameL ('d:/file', '.'); # should work for files renameL ('e:/file', 'f:/newfile'); # should work renameL ('d:/dir', 'd:/topdir/subdir'); # fails, can't move directory across volumes renameL ('c:/dir', 'd:/newdir');
So I think you should try using it as documented, and see if that works better. It is also possible that it will treat relative paths as being relative to the current directory, but I suggest trying that second after verifying that it works as documented for absolute paths.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Contacting the author of a module?
by BernieC (Pilgrim) on Jan 06, 2023 at 13:30 UTC | |
by BernieC (Pilgrim) on Jan 07, 2023 at 00:30 UTC |