diff --git a/app/models/deploy_local.rb b/app/models/deploy_local.rb index 31e147a..14471f7 100644 --- a/app/models/deploy_local.rb +++ b/app/models/deploy_local.rb @@ -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