| 1 | package Acme::CPANModules::Symlink; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Acme::CPANModulesUtil::Misc; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 8 | 1 | our $DATE = '2022-03-18'; # DATE | |
| 9 | 1 | our $DIST = 'Acme-CPANModules-Symlink'; # DIST | |
| 10 | 1 | our $VERSION = '0.001'; # VERSION | |
| 11 | |||
| 12 | 1 | our $description = <<'_'; | |
| 13 | |||
| 14 | **Creating** | ||
| 15 | |||
| 16 | Perl provides the `symlink` builtin. | ||
| 17 | |||
| 18 | <pm:Setup::File::Symlink> can create/fix/delete symlink. Part of the Setup | ||
| 19 | module family, the functions in this module are idempotent with transaction/undo | ||
| 20 | support. | ||
| 21 | |||
| 22 | |||
| 23 | **Finding** | ||
| 24 | |||
| 25 | Perl provides the `-l` operator to test if a file or filehandle is a symbolic | ||
| 26 | link. This performs an `lstat()` call, which unlike `stat()` can detect if a | ||
| 27 | handle is symbolic link. | ||
| 28 | |||
| 29 | |||
| 30 | **Testing** | ||
| 31 | |||
| 32 | <pm:Test::Symlink> | ||
| 33 | |||
| 34 | <pm:File::MoreUtil> provides some utilities that are symlink-aware, like | ||
| 35 | `l_abs_path` and `file_exists`. | ||
| 36 | |||
| 37 | |||
| 38 | **Other utilities** | ||
| 39 | |||
| 40 | <pm:File::Symlink::Relative> creates relative symbolic links. | ||
| 41 | |||
| 42 | <pm:File::Symlink::Util> provides utility routines related to symlinks. | ||
| 43 | |||
| 44 | |||
| 45 | **More specific utilities** | ||
| 46 | |||
| 47 | <pm:File::LinkTree::Builder> | ||
| 48 | |||
| 49 | <prog:short> (from <pm:App::short>). | ||
| 50 | |||
| 51 | <prog:lntree> (from <pm:App::lntree) to create a mirror based on symlinks. | ||
| 52 | |||
| 53 | |||
| 54 | **Windows symlinks** | ||
| 55 | |||
| 56 | <pm:Win32::NTFS::Symlink> | ||
| 57 | |||
| 58 | _ | ||
| 59 | |||
| 60 | 1 | our $LIST = { | |
| 61 | summary => "List of modules that deal with symbolic links (symlinks)", | ||
| 62 | description => $description, | ||
| 63 | }; | ||
| 64 | |||
| 65 | 1 | Acme::CPANModulesUtil::Misc::populate_entries_from_module_links_in_description; | |
| 66 | |||
| 67 | 1 | 1; | |
| 68 | # ABSTRACT: List of modules that deal with symbolic links (symlinks) | ||
| 69 | |||
| 70 | __END__ | ||