Method: Crackup::Driver::FileDriver#delete

Defined in:
lib/crackup/drivers/file.rb

#delete(url) ⇒ Object

Deletes the file at the specified url.



17
18
19
20
21
22
23
# File 'lib/crackup/drivers/file.rb', line 17

def delete(url)
  File.delete(get_path(url))
  return true
  
rescue => e
  raise Crackup::StorageError, "Unable to delete #{url}: #{e}"
end