DataStore-CAS-FS
view release on metacpan or search on metacpan
lib/DataStore/CAS/FS/Importer.pm view on Meta::CPAN
);
if (!defined $attrs{type}) {
$self->_handle_dir_error("Type of dirent is unknown: ".($stat->[2] & Fcntl::S_IFMT()));
$attrs{type}= 'file';
}
if ($self->{flags}{collect_unix_perm}) {
$attrs{unix_mode}= ($stat->[2] & ~Fcntl::S_IFMT());
my $uid= $attrs{unix_uid}= $stat->[4];
if (my $cache= $self->unix_uid_cache) {
if (!exists $cache->{$uid}) {
my $name= getpwuid($uid);
if (!defined $name) {
$self->_handle_metadata_error("No username for UID $uid");
} elsif ($self->utf8_filenames) {
$name= DataStore::CAS::FS::InvalidUTF8->decode_utf8($name);
} else {
utf8::upgrade($name);
}
$cache->{$uid}= $name;
}
$attrs{unix_user}= $cache->{$uid}
( run in 0.378 second using v1.01-cache-2.11-cpan-8d75d55dd25 )