File.rm_rf
You're seeing just the function
rm_rf
, go back to File module for more information.
Specs
Removes files and directories recursively at the given path
.
Symlinks are not followed but simply removed, non-existing
files are simply ignored (i.e. doesn't make this function fail).
Returns {:ok, files_and_directories}
with all files and
directories removed in no specific order, {:error, reason, file}
otherwise.
Examples
File.rm_rf("samples")
#=> {:ok, ["samples", "samples/1.txt"]}
File.rm_rf("unknown")
#=> {:ok, []}