Name

SPVM::File::Copy - Copying and Moving Files

Description

File::Copy class in SPVM has methods to move and copy 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 : void ($from : string, $to : string, $size : int = -1);

Copies the first $size bytes of the source file $from to the distination file $to. If $size is a negative value, it is set to the size of $from.

move

static method move : void ($from : string, $to : string);

Moves the source file $from to the distination file $to.

See Also

Porting

SPVM::File::Copy is a Perl's File::Copy porting to SPVM.

Repository

SPVM::File::Copy - Github

Author

Yuki Kimoto kimoto.yuki@gmail.com

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License