From 86ffed379481fb5d3c67a5147347f2af4d14fa3b Mon Sep 17 00:00:00 2001 From: f Date: Tue, 12 May 2020 09:20:55 -0300 Subject: [PATCH] =?UTF-8?q?ignorar=20symlinks=20en=20la=20cuenta=20de=20ta?= =?UTF-8?q?ma=C3=B1o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/deploy_local.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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