Filesys-POSIX

 view release on metacpan or  search on metacpan

lib/Filesys/POSIX/Inode.pm  view on Meta::CPAN

    ( 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

}

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;

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.568 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )