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::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 = 0 : int);

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

SPVM::File::Copy - Github

Author

Yuki Kimoto kimoto.yuki@gmail.com

Copyright & License

Copyright 2023-2023 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.