ignorar symlinks en la cuenta de tamaño
This commit is contained in:
parent
a24cc25e1b
commit
86ffed3794
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,11 @@ class DeployLocal < Deploy
|
||||||
paths = [destination, File.join(destination, '**', '**')]
|
paths = [destination, File.join(destination, '**', '**')]
|
||||||
|
|
||||||
Dir.glob(paths).map do |file|
|
Dir.glob(paths).map do |file|
|
||||||
File.size file
|
if File.symlink? file
|
||||||
|
0
|
||||||
|
else
|
||||||
|
File.size(file)
|
||||||
|
end
|
||||||
end.inject(:+)
|
end.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue