pathname
pathname copied to clipboard
Pathname represents the name of a file or directory on the filesystem, but not the file itself.
Instead of using assert_separately. If we use .ractor, we can use the same process for tests that use Ractor. It's easy to debug.
Please consider adding `Pathname.home` for symmetry with `Dir.home` but returning a `Pathname` instead of a `String`, and to avoid having to use ` Pathname.new(Dir.home)`.
As it was introduced into Ruby 3.3 as `Dir#chdir`, and was requested before that in #25.
delete_prefix with a string is easier to read than a regular expression also it should be faster. It is available since ruby 2.5 and the gem requires ruby 2.7.
Since most use-full functionalities from Dir are included in Pathname, I'm surprised that `Dir.chdir` is not included. As the whole Pathname class is as pleasant facade for File, FileTest, Dir...
Hi, This is a very simple complement to `sub` and `ext_sub`. I believe `basename_sub` is more natural than `sub`, and in fact `sub`'s example is actually pretty-much an example of...
JRuby has its own logic for pathname, with a mix of Ruby and Java extension code. We would like to use the gem, so we will need to merge in...
Wouldn't it make sense to have something like `has_parent?` which is true iff the path is not reduced to a file name? C++ for instance has a [similar feature](https://en.cppreference.com/w/cpp/filesystem/path/has_path).
I tried comparing pathnames to see if one was a subdirectory of another, and noticed it implements `` but doesn't include `Comparable`. This allows pathnames respond to comparison operators and...
## Why Hello. :wave: I keep running into situations where I'd like to use `puts` when swapping out an IO-like object (i.e. `IO`, `StringIO`, `File`, `Kernel`, `Pathname`, and so forth)...