FunctionalPerl
view release on metacpan or search on metacpan
lib/Chj/xperlfunc.pm view on Meta::CPAN
Chj::xperlfunc::fstype_for_device($s->dev)
}
our $has_no_subdirs_safe_fstype = +{
ext2 => 1,
ext3 => 1,
ext4 => 1,
tmpfs => 1,
vfat => 1,
squashfs => 1,
overlay => 0,
};
sub has_no_subdirs {
my $s = shift;
$s->is_dir or die "has_no_subdirs can only be used on directories";
my $dev = $s->dev;
my $fstype = $s->fstype;
if ($$has_no_subdirs_safe_fstype{$fstype}) {
my $n = $s->nlink;
$n < 2
( run in 0.535 second using v1.01-cache-2.11-cpan-49f99fa48dc )