Skip Menu |

This queue is for tickets about the File-Path CPAN distribution.

Report information
The Basics
Id: 70657
Status: rejected
Priority: 0/
Queue: File-Path

People
Owner: RICHE [...] cpan.org
Requestors: bitcard-20100921 [...] djce.org.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.08
Fixed in: (no value)



Subject: mkpath fails on UNC paths (windows)
mkpath attempts to create each path in turn starting at the root, but it fails to recognise that this is impossible for UNC paths. Example: mkpath("//server/share/some/path") will fail because it first tries mkdir("//server") (and of course "//server" is not, and never can be, the name of a directory). Instead, it should start trying at either "//server/share" or more likely "//server/share/some". The error reported is: "mkdir //server: Invalid argument; the filename, directory name, or volume label syntax is incorrect". The same also applies to mkpath("\\\\server\\share\\some\\path"). This was tested with Strawberry perl 5.12.3, and IIRC has also been seen on ActiveState perl (not sure what version, sorry).
This bug can not be reproduced, and the tests added in https://github.com/rpcme/File-Path/pull/6 show it cant be reproduced, therefore it is rejected. The OP's double quote interpolation in his sample code was probably causing the issue on his system.
This issue cannot be reproduced and please see comments re: bulk88's addition of unit tests to prove. Please comment if can be proven otherwise.