SPVM::File::Spec - Performing Operations on File Names Portably
The File::Spec class of SPVM has methods to perform operations on file names portably.
use File::Spec; my $file = File::Spec->catfile(["foo", "bar"], "a.txt"]);
static method canonpath : string ($path : string);
static method catdir : string ($directories : string[]);
static method catfile : string ($directories : string[], $filename : string);
static method curdir : string ();
static method devnull : string ();
static method rootdir : string ();
static method tmpdir : string ();
static method updir : string ();
static method no_upwards : string[] ($directories : string[]);
static method file_name_is_absolute : int ($path : string);
static method file_name_is_root : int ($path : string);
static method path : string[] ();
static method join : string ($directories : string[], $filename : string);
static method splitpath : string[] ($path : string, $no_file : int = 0);
static method splitdir : string[] ($path : string);
static method catpath : string ($volume : string, $directory : string, $file : string);
static method abs2rel : string ($path : string, $base : string = undef);
static method rel2abs : string ($path : string, $base : string = undef);
The following classes are used to implement SPVM::File::Spec.
SPVM::File::Spec
File::Spec::Instance
File::Spec::Instance::Unix
File::Spec::Instance::Win32
SPVM::Cwd is included in this distribution.
SPVM::Cwd
SPVM::File::Spec is Perl's File::Spec porting to SPVM.
SPVM::File::Spec - Github
Yuki Kimoto kimoto.yuki@gmail.com
kimoto.yuki@gmail.com
Copyright (c) 2023 Yuki Kimoto
MIT License
To install SPVM::File::Spec, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::File::Spec
CPAN shell
perl -MCPAN -e shell install SPVM::File::Spec
For more information on module installation, please visit the detailed CPAN module installation guide.