Don't count mkpath in ObserverPathnameExtension

mkpathed directories aren't really "linked" or "unlinked" per se,
and link/unlink handle directories differently. It's easier just to
ignore them, which finally synchronizes link/unlink counts.
This commit is contained in:
Misty De Meo 2012-10-04 14:30:56 -05:00
parent 0f2fe4a61b
commit dbdf2c78c3

View File

@ -362,12 +362,6 @@ module ObserverPathnameExtension
puts "rmdir #{to_s}" if ARGV.verbose? puts "rmdir #{to_s}" if ARGV.verbose?
$d+=1 $d+=1
end end
def mkpath
return if exist?
super
puts "mkpath #{to_s}" if ARGV.verbose?
$d+=1
end
def make_relative_symlink src def make_relative_symlink src
super super
$n+=1 $n+=1