NAME

File::LinkTree - Manage Symlink Trees (Shadow Directories)

SYNOPSIS

symlink_tree($opt);
prune_tree($opt);

DESCRIPTION

Hopefully, you can just use the command line program:

 usage: linktree [-n] [-v] [-m 0777] [-u] (<src>|-f LINKTREES) <dest>
          -f <trees>    link all the directories listed in <trees>
          -m <mode>     create directories with <mode>
          -u            unlink
          If $LINKTREE_BASE is set, <dest> may be omitted.

        linktree -p [-n] [-v] [-f LINKTREES] <dir>
          -p            prune bad links under <dir> (or $LINKTREE_BASE)
          -f <trees>    sends the results to <trees>

          -n            no operation mode
          -v            verbose (print all commands)

Symlinks are made with absolute paths. Absolute paths take a little more disk space, but they should be faster and they are more easily analyzed (see prune_tree).

$opt is a hash ref. Required parameters are:

src => 'dir',
dest => 'dir',
unlink => $yes

Optional parameters are:

verbose => 1,
nop => 0,
silent => 1,
mode => 0777,
cwd => 'dir',

prune_tree($opt)

$opt is a hash ref. Required parameters are:

dir => 'dir'

Optional parameters are:

trees => "dir/LINKTREES",
verbose => 1,
nop => 0,
silent => 1,

BUGS

Needs more complex regression tests.

AUTHOR

Copyright © 1997-1998 Joshua Nathaniel Pritikin. All rights reserved. This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 235:

Non-ASCII character seen before =encoding in '©'. Assuming CP1252