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