Name
SPVM::Cwd - get pathname of current working directory
Usage
use Cwd;
my $dir = Cwd->getcwd;
my $abs_path = Cwd->abs_path($file);
Description
This module provides functions for determining the pathname of the current working directory.
Cwd
is a Perl Cwd porting to SPVM.
Cwd
is a SPVM module.
Caution
SPVM is yet experimental status.
Class Methods
getcwd
static method getcwd : string ();
Returns the current working directory. On error returns undef, with errno set to indicate the error.
Exposes the POSIX function getcwd(3).
abs_path
static method abs_path : string ($file :string)
Uses the same algorithm as getcwd(). Symbolic links and relative-path components ("." and "..") are resolved to return the canonical pathname, just like realpath(3). On error returns undef, with Errno-errno|SPVM::Errno/"errno"> set to indicate the error.
realpath
static method realpath : string ($file : string)
A synonym for abs_path().
Repository
https://github.com/yuki-kimoto/SPVM-Cwd
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.