Commit 3c7a1270 by Taylor Otwell

Added File::move and File::copy methods.

parent b41bba45
......@@ -69,6 +69,30 @@ class File {
}
/**
* Move a file to a new location.
*
* @param string $path
* @param string $target
* @return void
*/
public static function move($path, $target)
{
return rename($path, $target);
}
/**
* Copy a file to a new location.
*
* @param string $path
* @param string $target
* @return void
*/
public static function copy($path, $target)
{
return copy($path, $target);
}
/**
* Extract the file extension from a file path.
*
* @param string $path
......
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