Commit b41bba45 by Taylor Otwell

Added File::cleandir.

parent 0637042c
......@@ -274,6 +274,17 @@ class File {
}
/**
* 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.
*
* @param string $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