Changeset 88
- Timestamp:
- 05/10/07 22:16:27 (2 years ago)
- Files:
-
- trunk/Changes (modified) (1 diff)
- trunk/lib/Brackup/Root.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Changes
r85 r88 1 - halve number of stats when walking backup root 2 1 3 - cleanups, strictness 2 4 trunk/lib/Brackup/Root.pm
r86 r88 83 83 chdir $self->{dir} or die "Failed to chdir to $self->{dir}"; 84 84 85 my %statcache; # file -> statobj 86 85 87 find({ 86 88 no_chdir => 1, … … 100 102 next if $path eq $self->{digdb_file}; 101 103 102 my (@stat) = stat($path); 104 my $statobj = File::stat::lstat($path); 105 $statcache{$path} = $statobj; 106 103 107 my $is_dir = -d _; 104 108 … … 116 120 117 121 wanted => sub { 118 my (@stat) = stat(_);119 122 my $path = $_; 120 123 $path =~ s!^\./!!; 121 # TODO: pass along the stat info 122 my $file = Brackup::File->new(root => $self, path => $path); 124 125 my $stat_obj = delete $statcache{$path}; 126 my $file = Brackup::File->new(root => $self, 127 path => $path, 128 stat => $stat_obj, 129 ); 123 130 $cb->($file); 124 131 },
