Filesys-POSIX
view release on metacpan or search on metacpan
lib/Filesys/POSIX/Inode.pm view on Meta::CPAN
185186187188189190191192193194195196197198199200201202203204
(
shift
->{
'mode'
} &
$S_ISGID
) != 0;
}
=item C<$inode-E<gt>update(@st)>
Updates the current inode object with a list of values as returned by
L<stat()|perlfunc/stat>.
=cut
sub
update {
my
(
$self
,
@st
) =
@_
;
@{
$self
}{
qw(size atime mtime ctime uid gid mode rdev)
} =
(
@st
[ 7 .. 10 ],
@st
[ 4 .. 5 ],
$st
[2],
$st
[6] );
return
$self
;
}
=item C<$inode-E<gt>directory>
lib/Filesys/POSIX/Real/Inode.pm view on Meta::CPAN
105106107108109110111112113114115116117118119120121122123124125}
sub
taint {
my
(
$self
) =
@_
;
$self
->{
'dirty'
} = 1;
return
$self
;
}
sub
update {
my
(
$self
,
@st
) =
@_
;
if
(
$self
->{
'sticky'
} &&
$self
->{
'dirty'
} ) {
@{
$self
}{
qw(rdev size atime mtime ctime)
} =
@st
[ 6 .. 10 ];
}
else
{
$self
->SUPER::update(
@st
);
}
return
$self
;
( run in 0.538 second using v1.01-cache-2.11-cpan-cba739cd03b )