| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Acme::CPANModules::Symlink; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
401163
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
34
|
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
56
|
|
|
5
|
1
|
|
|
1
|
|
446
|
use Acme::CPANModulesUtil::Misc; |
|
|
1
|
|
|
|
|
482
|
|
|
|
1
|
|
|
|
|
108
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
|
8
|
|
|
|
|
|
|
our $DATE = '2023-11-20'; # DATE |
|
9
|
|
|
|
|
|
|
our $DIST = 'Acme-CPANModules-Symlink'; # DIST |
|
10
|
|
|
|
|
|
|
our $VERSION = '0.002'; # VERSION |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our $description = <<'_'; |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
**Creating** |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Perl provides the `symlink` builtin. |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
provides some utilities that are symlink-aware, like |
|
35
|
|
|
|
|
|
|
`l_abs_path` and `file_exists`. |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
**Other utilities** |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
creates relative symbolic links. |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
provides utility routines related to symlinks. |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
**More specific utilities** |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
(from ). |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
(from
|
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
**Windows symlinks** |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
_ |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
our $LIST = { |
|
61
|
|
|
|
|
|
|
summary => "List of modules that deal with symbolic links (symlinks)", |
|
62
|
|
|
|
|
|
|
description => $description, |
|
63
|
|
|
|
|
|
|
}; |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Acme::CPANModulesUtil::Misc::populate_entries_from_module_links_in_description; |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
1; |
|
68
|
|
|
|
|
|
|
# ABSTRACT: List of modules that deal with symbolic links (symlinks) |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
__END__ |