ruby / pathname

Pathname represents the name of a file or directory on the filesystem, but not the file itself.
Other
26 stars 16 forks source link

Provide a means to know if a directory part is included #9

Open akimd opened 3 years ago

akimd commented 3 years ago

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.