SPVM-Sys
view release on metacpan or search on metacpan
lib/SPVM/Sys.pm view on Meta::CPAN
Sets the umask for the process to the mode $mode and returns the previous value.
Exceptions:
Exceptions thrown by L<Sys::IO#umask|SPVM::Sys::IO/"umask"> method could be thrown.
=head2 unlink
C<static method unlink : void ($file : string);>
Deletes a file.
In Windows, this method calls L<Sys::IO::Windows#unlink|SPVM::Sys::IO::Windows/"unlink"> method , otherwise calls L<Sys::IO#unlink|SPVM::Sys::IO/"unlink"> method.
Exceptions:
Exceptions thrown by the L<Sys::IO::Windows#unlink|SPVM::Sys::IO::Windows/"unlink"> method or L<Sys::IO#unlink|SPVM::Sys::IO/"unlink"> method could be thrown.
=head2 rename
C<static method rename : void ($old_path : string, $new_path : string);>
Raname the file name from the old name $old_path to the new name $new_path.
In Windows, this method calls L<Sys::IO::Windows#rename|SPVM::Sys::IO::Windows/"rename"> method , otherwise calls L<Sys::IO#rename|SPVM::Sys::IO/"rename"> method.
Exceptions:
Exceptions thrown by the L<Sys::IO::Windows#rename|SPVM::Sys::IO::Windows/"rename"> method or L<Sys::IO#rename|SPVM::Sys::IO/"rename"> method could be thrown.
=head2 rmdir
C<static method rmdir : void ($dir : string);>
Deletes the directory given the path $dir.
Exceptions:
Exceptions thrown by L<Sys::IO#rmdir|SPVM::Sys::IO/"rmdir"> method could be thrown.
=head2 chdir
C<static method chdir : void ($dir : string);>
Changes the working directory to the path $dir.
Exceptions:
Exceptions thrown by L<Sys::IO#chdir|SPVM::Sys::IO/"chdir"> method could be thrown.
=head2 chmod
C<static method chmod : void ($mode :int, $file : string);>
Changes the permissions of the file $file to the permission $mode.
Exceptions:
Exceptions thrown by L<Sys::IO#chmod|SPVM::Sys::IO/"chmod"> method could be thrown.
=head2 chown
C<static method chown : void ($owner : int, $group : int, $file : string);>
Changes the owner and the group of the file $file to $owner and $group.
Exceptions:
Exceptions thrown by L<Sys::IO#chown|SPVM::Sys::IO/"chown"> method could be thrown.
=head2 readlink
C<static method readlink : int ($file : string);>
Returns the content of the symbolic link file $file.
In Windows thie method calls L<Sys::IO::Windows#readlink|SPVM::Sys::IO::Windows/"readlink"> method , otherwise calls L<Sys::IO#readlink|SPVM::Sys::IO/"readlink"> method .
Exceptions:
Exceptions thrown by L<Sys::IO#readlink|SPVM::Sys::IO/"readlink"> method or L<Sys::IO::Windows#readlink|SPVM::Sys::IO::Windows/"readlink"> method could be thrown.
=head2 symlink
C<static method symlink : int ($old_path : string, $new_path : string);>
Creates a path $new_path symbolically linked to the path $old_path.
In Windows thie method calls L<Sys::IO::Windows#symlink|SPVM::Sys::IO::Windows/"symlink"> method , otherwise calls L<Sys::IO#symlink|SPVM::Sys::IO/"symlink"> method .
Exceptions:
Exceptions thrown by L<Sys::IO#symlink|SPVM::Sys::IO/"symlink"> method or L<Sys::IO::Windows#symlink|SPVM::Sys::IO::Windows/"symlink"> method could be thrown.
=head2 truncate
C<static method truncate : void ($fd : int, $legnth : long);>
Truncates the file referenced by the file descriptor $fd to a size of precisely length bytes $legnth.
Exceptions:
Exceptions thrown by L<Sys::IO#ftruncate|SPVM::Sys::IO/"ftruncate"> method could be thrown.
=head2 opendir
C<static method opendir : void ($dir_stream_ref : L<Sys::IO::DirStream|SPVM::Sys::IO::DirStream>[], $dir : string);>
Opens the directory stream given the directory $dir.
The opened directory stream is set to $dir_stream_ref at index 0.
Exceptions:
If the directory stream \$dir_stream is already closed, an exception is thrown.
This method calls L<Sys::IO#opendir|SPVM::Sys::IO/"opendir"> method.
Exceptions thrown by L<Sys::IO#opendir|SPVM::Sys::IO/"opendir"> method could be thrown.
=head2 closedir
C<static method closedir : void ($dir_stream : L<Sys::IO::DirStream|SPVM::Sys::IO::DirStream>);>
Closes the directory stream given the directory stream $dir_stream.
This method calls L<Sys::IO#closedir|SPVM::Sys::IO/"closedir"> method.
Exceptions:
( run in 0.650 second using v1.01-cache-2.11-cpan-5511b514fd6 )