Name
SPVM::File::Copy - Copying and Moving Files
Description
SPVM::File::Copy
is the File::Copy
class in SPVM language.
File::Copy
providdes the features to copy and move files.
Usage
use File::Copy;
my $from = "a.txt";
my $to = "b.txt";
File::Copy->copy($from, $to);
File::Copy->move($from, $to);
Class Methods
copy
static method copy : int ($from : string, $to : string, $size : int = 0);
Copies the file specified $from to $to. The $size is the buffer size to be used file copy. If the $size is 0
, the size is decided automatically.
move
static method move : int ($from : string, $to : string);
Moves the file specified $from to $to.
See Also
File::Copy
SPVM::File::Copy
is Perl's File::Copy porting to SPVM.
Repository
Author
Yuki Kimoto kimoto.yuki@gmail.com
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License