Filesys-POSIX

 view release on metacpan or  search on metacpan

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

185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
    ( 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

105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
}
 
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 )