Path-Class
Path-Class copied to clipboard
Cross-platform path specification manipulation
`file("c:foo.txt")` loses the volume, i.e. it becomes `foo.txt` relative to the current directory, not the current directory on drive C. Incidentally, `dir("c:foo.dir")` works as expected.
The module fails on build tests under perl 5.36 on Windows 10. The test ``` ok dir()->absolute->resolve, dir(Cwd::cwd())->resolve; ``` from file `01-basic.t` fails with the error ``` Can't call method...
Since on Unix platforms `Path::Class::File::copy_to` uses `system()` to run `cp` handling (or even logging) copy errors is impossible in my daemon: The `cp` writes it's error messages to a stderr...
Hi Ken, This just adds [MetaJSON] to `dist.ini`, so that releases will include a META.json file. The JSON file gives more fidelity to dependency metadata, compared with the YAML file....
``` 02:39:09 27827 ERROR [463]: + ./Build test 02:39:09 27827 ERROR [463]: # Test 3 got: "0" (t/01-basic.t at line 15) 02:39:09 27827 ERROR [463]: # Expected: "" 02:39:09 27827...
Hi @kenahoo Please review the PR. I encountered the following warnings while building a dist on my local machine: Wide character in print at /usr/local/share/perl/5.18.2/Path/Class/File.pm line 126. I propose the...
Situation at start, on Debian GNU/Linux: ``` $ ls -ld /tmp/x /tmp/y -rw-r--r-- 1 bengen bengen 0 Feb 26 15:18 /tmp/x drwxr-xr-x 2 bengen bengen 4096 Feb 26 15:14 /tmp/y...
would be useful if a ->quoted() method was provided so that: "this dir/this file.name" would be returned as q{'this dir/this file.name'} or q{this\ dir/this\ file.name} "this dir's/this file.name" => q{'this...
# dir /tmp/yyy exists ``` $file = '/tmp/xxx'; $file->move_to('/tmp/yyy') ``` # file xxx moved to yyy but $file is ``` Path::Class::File=HASH(0x7fcaa3288a78) 'dir' => Path::Class::Dir=HASH(0x7fcaa2f7b560) 'dirs' => ARRAY(0x7fcaa3288d48) 0 '' 1...
Creating an OO module for interfacing with Perl's, let's say suboptimal approach of swallowing failures which should be thrown as exceptions, would have been the perfect solution of fixing those...