The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Name

SPVM::File::Spec::Instance::Unix - Implementation of File::Spec::Instance for Linux/Unix/Mac

Description

The File::Spec::Instance::Unix class of SPVM is an implementation of File::Spec::Instance for Linux/Unix/Mac.

Usage

  use File::Spec::Instance::Unix;

  my $spec = File::Spec::Instance::Unix->new;
  my $file = $spec->catfile(["foo", "bar"], "a.txt"]);

Inheritance

Class Methods

  static method new : File::Spec::Instance::Unix ();

Instance Methods

devnull

  method devnull : string ();

rootdir

  method rootdir : string ();

curdir

  method curdir : string ();

updir

  method updir : string ();

canonpath

  method canonpath : string ($path : string);

catdir

  method catdir : string ($dir_parts : string[]);

catfile

  method catfile : string ($dir_parts : string[], $file_base_name : string);

no_upwards

  method no_upwards : string[] ($dir_parts : 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);

join

  method join : string ($dir_parts : string[], $file_base_name : string);

catpath

  method catpath : string ($volume : string, $directory : string, $file : string);

splitpath

  method splitpath : string[] ($path : string, $no_file : int = 0);

rel2abs

  method rel2abs : string ($path : string, $base : string = undef);

splitdir

  method splitdir : string[] ($path : string);

abs2rel

  method abs2rel : string ($path : string, $base : string = undef);

path

  method path : string[] ();

tmpdir

  method tmpdir : string ();

Author

Yuki Kimoto kimoto.yuki@gmail.com

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License