| 1 | # | ||||||||||
| 2 | # (c) Jan Gehring <jan.gehring@gmail.com> | ||||||||||
| 3 | # | ||||||||||
| 4 | |||||||||||
| 5 | package Rex::Helper::File::Stat; | ||||||||||
| 6 | |||||||||||
| 7 | 52 | ▶ | use v5.14.4; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 52 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 52 | our $VERSION = '1.16.1'; # VERSION | |||||||||
| 11 | |||||||||||
| 12 | 52 | require Rex::Helper::File::Stat::Unix; | |||||||||
| 13 | 52 | require Rex::Helper::File::Stat::Win32; | |||||||||
| 14 | |||||||||||
| 15 | 0 | ▶ | sub S_ISDIR { | ||||||||
|
Subroutine
S_ISDIR: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 16 | 0 | shift; | |||||||||
| 17 | 0 | _fcntl()->S_ISDIR(@_); | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub S_ISREG { | ||||||||
|
Subroutine
S_ISREG: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 21 | 0 | shift; | |||||||||
| 22 | 0 | _fcntl()->S_ISREG(@_); | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 0 | ▶ | sub S_ISLNK { | ||||||||
|
Subroutine
S_ISLNK: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 26 | 0 | shift; | |||||||||
| 27 | 0 | _fcntl()->S_ISLNK(@_); | |||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | 0 | ▶ | sub S_ISBLK { | ||||||||
|
Subroutine
S_ISBLK: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 31 | 0 | shift; | |||||||||
| 32 | 0 | _fcntl()->S_ISBLK(@_); | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 0 | ▶ | sub S_ISCHR { | ||||||||
|
Subroutine
S_ISCHR: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 36 | 0 | shift; | |||||||||
| 37 | 0 | _fcntl()->S_ISCHR(@_); | |||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | 0 | ▶ | sub S_ISFIFO { | ||||||||
|
Subroutine
S_ISFIFO: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 41 | 0 | shift; | |||||||||
| 42 | 0 | _fcntl()->S_ISFIFO(@_); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 0 | ▶ | sub S_ISSOCK { | ||||||||
|
Subroutine
S_ISSOCK: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 46 | 0 | shift; | |||||||||
| 47 | 0 | _fcntl()->S_ISSOCK(@_); | |||||||||
| 48 | } | ||||||||||
| 49 | |||||||||||
| 50 | 151 | ▶ | sub S_IMODE { | ||||||||
|
Subroutine
S_IMODE: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 51 | 151 | shift; | |||||||||
| 52 | 151 | _fcntl()->S_IMODE(@_); | |||||||||
| 53 | } | ||||||||||
| 54 | |||||||||||
| 55 | 151 | ▶ | sub _fcntl { | ||||||||
|
Subroutine
_fcntl: called CC=2 SCAR=8.1
| |||||||||||
| 56 | 151 | ▶ | if ( $^O =~ m/^MSWin/ ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 57 | 0 | return "Rex::Helper::File::Stat::Win32"; | |||||||||
| 58 | } | ||||||||||
| 59 | else { | ||||||||||
| 60 | 151 | return "Rex::Helper::File::Stat::Unix"; | |||||||||
| 61 | } | ||||||||||
| 62 | } | ||||||||||
| 63 | |||||||||||
| 64 | 52 | 1; | |||||||||