die <<USAGE;
Usage: $0 link-dir
Hashes a NUL-separated list of files on stdin into link-dir.
+
+Version: 20100513.0
USAGE
}
my $parent = "$link_dir/$prefix";
mkpath($parent, { verbose => 1 });
die "mkpath: $parent: $!" unless -d $parent;
- return "$parent/$prefix/$suffix";
+ return "$parent/$suffix";
}
# ext3 cannot handle more than 32000 links to a file. Leave some headroom.