Get a file’s contents by requiring it
Require the given file once
Write the contents of a file
Append to a file
Delete the file at a given path
Move a file to a new location
Copy a file to a new location
Extract the file extension from a file path
Get the file type of a given file
Get the file size of a given file
Get the file’s last modification time
Determine if the given path is a directory
Determine if the given path is writable
Determine if the given path is a file
Find path names matching a given pattern.
Get an array of all files in a directory.
Get all of the files from the given directory (recursive).
Get all of the directories within a given directory.
Create a directory
File::makeDirectory('path', $mode = 0777, $recursive = false);
Copy a directory from one location to another
File::copyDirectory('directory', 'destination', $options = null);
Recursively delete a directory
File::deleteDirectory('directory', $preserve = false);
Empty the specified directory of all files and folders