Method: Atech::ObjectStore::File#copy

Defined in:
lib/atech/object_store/file.rb

#copy(path) ⇒ Object

Downloads the current file to a path on your local server. If a file already exists at the path entered, it will be overriden.



131
132
133
# File 'lib/atech/object_store/file.rb', line 131

def copy(path)
  ::File.open(path, 'w') { |f| f.write(blob) }
end