adapter_interface
interface adapter_interface
Methods
void
configure(array $options)
Set adapter parameters
void
put_contents(string $path, string $content)
Dumps content into a file
string
get_contents(string $path)
Read the contents of a file
bool
exists(string $path)
Checks the existence of files or directories
void
delete(string $path)
Removes files or directories
void
rename(string $path_orig, string $path_dest)
Rename a file or a directory
void
copy(string $path_orig, string $path_dest)
Copies a file
int
file_size(string $path)
Get file size in bytes
float
free_space()
Get space available in bytes
Details
at line 25
void
configure(array $options)
Set adapter parameters
at line 34
void
put_contents(string $path, string $content)
Dumps content into a file
at line 44
string
get_contents(string $path)
Read the contents of a file
at line 53
bool
exists(string $path)
Checks the existence of files or directories
at line 62
void
delete(string $path)
Removes files or directories
at line 72
void
rename(string $path_orig, string $path_dest)
Rename a file or a directory
at line 82
void
copy(string $path_orig, string $path_dest)
Copies a file
at line 93
int
file_size(string $path)
Get file size in bytes
at line 101
float
free_space()
Get space available in bytes