ignorar symlinks en la cuenta de tamaño

This commit is contained in:
f 2020-05-12 09:20:55 -03:00
parent a24cc25e1b
commit 86ffed3794

View file

@ -31,7 +31,11 @@ class DeployLocal < Deploy
paths = [destination, File.join(destination, '**', '**')]
Dir.glob(paths).map do |file|
File.size file
if File.symlink? file
0
else
File.size(file)
end
end.inject(:+)
end