An exception for terminatinating execution or to throw for unit testing.
Class FileAlreadyExistsException.
Class FileNotFoundException.
Interface FileWriteAccess.
readAndDelete($path)
Reads the entire file content into a string and removes the file afterwards.
write($path, $content)
Writes the content to a new file.
update($path, $newContent)
Updates the content of a file.
copy($path, $copyPath)
Copy the source file to a destination.
rename($path, $newPath)
Moves a file from the source to the destination.
put($path, $content)
Creates a file or updates an existing one.