File-Rotate-Simple
view release on metacpan or search on metacpan
lib/File/Rotate/Simple.pm view on Meta::CPAN
}
die "Cannot move ${current} -> ${rotated}: file exists"
if $rotated->exists;
$current->move($rotated);
}
$self->file->touch if $self->touch;
# TODO: chmod/chown arguments
}
sub _build_files_to_rotate {
my ($self) = @_;
my %files;
my $num = $self->start_num;
( run in 0.881 second using v1.01-cache-2.11-cpan-5511b514fd6 )