parrotcode: Path | |
Contents | Perl Modules |
Parrot::IO::Path - Path
Parrot::IO::Path
is an abstract superclass providing common path logic for Parrot::IO::File
and Parrot::IO::Directory
.
Instances created with new()
are cached so that there is only one unique instance for each path.
new($path)
$path
if it already exists,
otherwise it is created and cached.
A relative path is made absolute.create_path()
new()
to create the parent path if necessary.
Subclasses should reimplement this method to complete the task.path()
name()
name_without_suffix()
suffix()
has_suffix()
has_suffix($suffix)
$suffix
.$suffix
is the empty string then this method will return true.parent_path()
stat()
File::stat
object.
Used by subclasses to get information about the path.delete()
|