logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Eric Wilhelm @ <ewilhelm at cpan dot org>

       http://scratchcomputing.com/

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.

File::Spec Stuff

       This needs to be redone.

   is_absoluterelative
       Get a relative name.

         my $rel = $abs->relative;

       Also, with optional relative-to directory:

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

   relative_to
       Same as relative(), but requires the $dir argument.

         my $rel = $abs->relative_to($dir);

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

   rename
       Calls the builtin rename() on the $path and returns a new object with that name.

         $path = $path->rename($newname);

Filetests

rwxoRWXOezsfdlpSbctugkTBMAC
       See perldoc -f -x

License

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

perl v5.36.0                                       2022-12-07                                File::Fu::Base(3pm)

Name

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

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.

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

Synopsis

clone
         my $obj = $obj->clone;

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

   error
         $package->error($op);

See Also