lib/u3d/utils.rb in u3d-1.3.0 vs lib/u3d/utils.rb in u3d-1.3.1
- old
+ new
@@ -313,9 +313,13 @@
y.yield s if s.length >= min
end
end
end
+ def file_exists_not_empty?(path)
+ File.file?(path) && File.size(path).positive?
+ end
+
private
def http_max_retries
ENV.fetch('U3D_HTTP_MAX_RETRIES', nil)&.to_i
end