platform safe file.link which attempts a copy if hard-linking fails.
platform safe file.link which attempts a copy if hard-linking fails
46 47 48 49 50 51 52
# File 'lib/sup/util.rb', line 46 def self.safe_link src, dest begin File.link src, dest rescue FileUtils.copy src, dest end end