File::Fu::Base - nothing to see here


NAME

File::Fu::Base - nothing to see here

Back to Top


SYNOPSIS

clone

  my $obj = $obj->clone;

clonedo

  $clone = $self->clonedo($action, @args);

error

  $package->error($op);

Back to Top


Filetests

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 C

See perldoc -f -x

Back to Top


File::Spec stuff

This needs to be redone.

is_absolute

relative

Get a relative name.

  my $rel = $abs->relative;

Also, with optional relative-to directory:

  my $rel = $abs->relative($to);

resolve

Fully resolve any symlinks;

  my $path = $path->resolve;

relative_symlink

Where $path and $linkname are both relative to the current directory.

  $path->relative_symlink($linkname);

utime

Update the file timestamps.

  $file->utime($atime, $mtime);

Optionally, set both to the same time.

  $file->utime($time);

Also see touch().

chmod

  $path->chmod($mode);

Back to Top


Stat Object

The stat() and lstat() methods both return a File::stat object.

stat

  my $st = $obj->stat;

lstat

Same as stat, but does not dereference symlinks.

  my $st = $obj->lstat;

is_same

Returns 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);

Back to Top


AUTHOR

Eric Wilhelm @ <ewilhelm at cpan dot org>

http://scratchcomputing.com/

Back to Top


BUGS

If 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.

Back to Top


COPYRIGHT

Copyright (C) 2008 Eric L. Wilhelm, All Rights Reserved.

Back to Top


NO WARRANTY

Absolutely, 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.

Back to Top


LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Back to Top

 File::Fu::Base - nothing to see here