File::Spec::LinkFile::Spec::Link is a Perl extension for reading and resolving symbolic links. | |
Download |
File::Spec::Link Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Robin Barker
- Publisher web site:
- http://search.cpan.org/~rmbarker/File-Copy-Link-0.080/lib/File/Spec/Link.pm
File::Spec::Link Tags
File::Spec::Link Description
File::Spec::Link is a Perl extension for reading and resolving symbolic links. File::Spec::Link is a Perl extension for reading and resolving symbolic links.SYNOPSIS use File::Spec::Link; my $file = File::Spec::Link->linked($link); my $file = File::Spec::Link->resolve($link); my $dirname = File::Spec::Link->chopfile($file); my $newname = File::Spec::Link->relative_to_file($path, $link); my $realname = File::Spec::Link->full_resolve($file); my $realname = File::Spec::Link->resolve_path($file); my $realname = File::Spec::Link->resolve_all($file);File::Spec::Link is an extension to File::Spec, adding methods for resolving symbolic links; it was created to implement File::Copy::Link.linked($link)Returns the filename linked to by $link: by readlinking $link, and resolving that path relative to the directory of $link.resolve($link)Returns the non-link ultimately linked to by $link, by repeatedly calling linked. Returns undef if the link can not be resolved.chopfile($file)Returns the directory of $file, by splitting the path of $file and returning (the volumne and) directory parts.relative_to_file($path, $file)Returns the path of $path relative to the directory of file $file. If $path is absolute, just returns $path.resolve_all($file)Returns the filename of $file with all links in the path resolved, wihout using Cwd.full_resolve($file)Returns the filename of $file with all links in the path resolved.This sub tries to use Cwd::abs_path via ->resolve_path.resolve_path($file)Returns the filename of $file with all links in the path resolved.This sub uses Cwd::abs_path and is independent of the rest of File::Spec::Link. Requirements: · Perl
File::Spec::Link Related Software