The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Name

SPVM::File::Spec::Interface - File::Spec Interface

Description

SPVM::File::Spec::Interface is the SPVM's File::Spec::Interface class.

This class is the File::Spec interface.

Usage

  use File::Spec::Interface;

Interface Methods

has_interfaces

  required method has_interfaces : int ();

canonpath

  method canonpath : string ($path : string);

catdir

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

catfile

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

file_name_is_absolute

  method file_name_is_absolute : int ($path : string);

path

  method path : string[] ();

join

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

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.