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:
parent
0f2fe4a61b
commit
dbdf2c78c3
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user