File::Copy::Link(3pm)

File::Copy::Link3pm

Extension for replacing a link by a copy of the linked file

Usage

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

Overview

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

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 6 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–10
  5. 11
  6. 12
  7. 13

Author

Robin Barker, <[email protected]>

From libfile-copy-link-perl 0.200-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.