mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 02:21:42 +00:00
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, '**', '**')]
|
||||
|
||||
Dir.glob(paths).map do |file|
|
||||
File.size file
|
||||
if File.symlink? file
|
||||
0
|
||||
else
|
||||
File.size(file)
|
||||
end
|
||||
end.inject(:+)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue