Commit b41bba45 authored by Taylor Otwell's avatar Taylor Otwell

Added File::cleandir.

parent 0637042c
......@@ -273,6 +273,17 @@ class File {
if ( ! $preserve) @rmdir($directory);
}
/**
* Empty the specified directory of all files and folders.
*
* @param string $directory
* @return void
*/
public static function cleandir($directory)
{
return static::rmdir($directory, true);
}
/**
* Get the most recently modified file in a directory.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment