Method: Hanami::Utils::Files.delete

Defined in:
lib/hanami/utils/files.rb

.delete(path) ⇒ Object

Deletes given path (file).

Parameters:

  • path (String, Pathname)

    the path to file

Raises:

  • (Errno::ENOENT)

    if the path doesn’t exist

Since:

  • 1.1.0


104
105
106
# File 'lib/hanami/utils/files.rb', line 104

def self.delete(path)
  FileUtils.rm(path)
end