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::Copy::Link - extension for replacing a link by a copy of the linked file

Author

       Robin Barker, <RMBarker@cpan.org>

Description

       "copylink"
           reads the filename linked to by the argument and replaced the link with a copy of the file.  It opens
           a  filehandle  to  read  from  the link, deletes the link, and then copies the filehandle back to the
           link.

       "safecopylink"
           does  the  same  as  "copylink"  but  without  the  open-and-delete  manouvre.   Instead,   it   uses
           "File::Spec::Link" to find the target of the link and copies from there.

       This   module   is   mostly  a  wrapper  round  "File::Spec::Link::linked"  and  "File::Copy::copy",  the
       functionality is available in a command line script copylink.

   EXPORT
       Nothing by default, can export "copylink", `"safecopylink".

Name

       File::Copy::Link - extension for replacing a link by a copy of the linked file

See Also

copylink(1) File::Copy(3) File::Spec::Link(3)

Synopsis

         use File::Copy::Link;
         copylink 'file.lnk';

         use File::Copy::Link qw(safecopylink);
         safecopylink 'file.lnk';

See Also