Name
SPVM::File::Spec::Instance - Portably Perform Operations on File Names
Description
SPVM::File::Spec::Instance
is the SPVM's File::Spec::Instance
class.
This module is designed to support operations commonly performed on file specifications
Usage
use File::Spec::Instance;
my $spec = File::Spec::Instance->new;
my $file = $spec->catfile(["foo", "bar"], "a.txt"]);
Class Methods
static method new : File::Spec::Instance ();
Instance Methods
has_interfaces
method has_interfaces : int ();
canonpath
method canonpath : string ($path : string);
catdir
method catdir : string ($directories : string[]);
catfile
method catfile : string ($directories : string[], $filename : string);
curdir
method curdir : string ();
devnull
method devnull : string ();
rootdir
method rootdir : string ();
tmpdir
method tmpdir : string ();
updir
method updir : string ();
no_upwards
method no_upwards : string[] ($directories : string[]);
file_name_is_absolute
method file_name_is_absolute : int ($path : string);
file_name_is_root
method file_name_is_root : int ($path : string);
path
method path : string[] ();
join
method join : string ($directories : string[], $filename : string);
splitpath
method splitpath : string[] ($path : string, $no_file = 0 : int);
splitdir
method splitdir : string[] ($path : string);
catpath
method catpath : string ($volume : string, $directory : string, $file : string);
abs2rel
method abs2rel : string ($path : string, $base = undef : string);
rel2abs
method rel2abs : string ($path : string, $base = undef : string);
Well Known Child Classes
Repository
SPVM::File::Spec::Instance - Github
Author
Yuki Kimoto kimoto.yuki@gmail.com
Copyright & License
Copyright 2022-2022 Yuki Kimoto, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.