NAME
CTK::File - Files and direcries working
VERSION
1.00
$Id: File.pm 50 2012-12-18 10:33:15Z minus $
SYNOPSIS
$c->fsplit(
-in => CTK::catfile($CTK::DATADIR,'in'), # Source directory (big files)
-out => CTK::catfile($CTK::DATADIR,'out'), # Destination directory (splitted files)
-n => 100, # Lines count
-format => '[FILENAME]_%03d.[FILEEXT]', # Format
-list => qr//, # Source mask (regular expression, filename or ArrayRef of files)
);
$c->fcopy(
-in => CTK::catfile($CTK::DATADIR,'in'), # Source directory (source files)
-out => CTK::catfile($CTK::DATADIR,'out'), # Destination directory
-format => '[FILE].copy', # Format
-list => qr//, # Source mask (regular expression, filename or ArrayRef of files)
);
$c->fmv(
-in => CTK::catfile($CTK::DATADIR,'in'), # Source directory (source files)
-out => CTK::catfile($CTK::DATADIR,'out'), # Destination directory
-format => '[FILE].copy', # Format
-list => qr//, # Source mask (regular expression, filename or ArrayRef of files)
);
$c->frm(
-in => CTK::catfile($CTK::DATADIR,'in'), # Source directory (source files)
-list => qr//, # Source mask (regular expression, filename or ArrayRef of files)
);
DESCRIPTION
KEYS
- FILE
-
Path and filename
- FILENAME
-
Filename only
- FILEEXT
-
File extension only
- COUNT
-
Current number of file in sequence (for fcopy and fmove methods)
Gor fsplit method please use perl mask %i
- Time
-
Current time value (time())
NOTES
For copying paths: use File::Copy::Recursive qw(dircopy dirmove);
For TEMP dirs/files working: use File::Temp qw/tempfile tempdir/;
AUTHOR
Serz Minus (Lepenkov Sergey) http://serzik.ru <minus@mail333.com>.
COPYRIGHT
Copyright (C) 1998-2012 D&D Corporation. All Rights Reserved
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms and conditions as Perl itself.
This program is distributed under the GNU LGPL v3 (GNU Lesser General Public License version 3).
See LICENSE
file