Method: Hanami::Utils::Files.delete_directory

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

.delete_directory(path) ⇒ Object

Deletes given path (directory).

Parameters:

  • path (String, Pathname)

    the path to file

Raises:

  • (Errno::ENOENT)

    if the path doesn’t exist

Since:

  • 1.1.0


115
116
117
# File 'lib/hanami/utils/files.rb', line 115

def self.delete_directory(path)
  FileUtils.remove_entry_secure(path)
end