my $obj = $obj->clone;
$clone = $self->clonedo($action, @args);
r w x o R W X O e z s f d l p S b c t u g k T B M A CSee perldoc -f -x
File::Spec stuffThis needs to be redone.
relativeGet a relative name.
my $rel = $abs->relative;
Also, with optional relative-to directory:
my $rel = $abs->relative($to);
relative_toSame as relative(), but requires the $dir argument.
my $rel = $abs->relative_to($dir);
resolveFully resolve any symlinks;
my $path = $path->resolve;
relative_symlinkWhere $path and $linkname are both relative to the current directory.
utimeUpdate the file timestamps.
Optionally, set both to the same time.
Also see touch().
renameCalls the builtin rename() on the $path and returns a new object with that name.
$path = $path->rename($newname);
Stat ObjectThe stat() and lstat() methods both return a File::stat object.
my $st = $obj->stat;
lstatSame as stat, but does not dereference symlinks.
my $st = $obj->lstat;
is_sameReturns true if the two paths are the same. This is by string equality, then (if both paths exist) by device+inode equality.
$bool = $path->is_same($other);
AUTHOREric Wilhelm @ <ewilhelm at cpan dot org>
BUGSIf you found this module on CPAN, please report any bugs or feature requests through the web interface at <http://rt.cpan.org>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
If you pulled this development version from my /svn/, please contact me directly.
COPYRIGHTCopyright (C) 2008 Eric L. Wilhelm, All Rights Reserved.
NO WARRANTYAbsolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatsoever. You have been warned.
LICENSEThis program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.