File
final class File
The wrapper of League\Flysystem\Filesystem
.
Methods
string
read(string $location)
Read a file.
string
readSql(string $location)
Read a sql file without comments.
void
write(string $location, string $content, bool $force = false)
Write a content to a file.
void
touch(string $location, bool $force = false)
Write a empty content to a file.
void
delete(string $location)
Delete a file.
void
deleteDictionary(string $path, string|null $ext = null)
Delete all files in a directory.
Details
at line 26
string
read(string $location)
Read a file.
at line 39
string
readSql(string $location)
Read a sql file without comments.
at line 57
void
write(string $location, string $content, bool $force = false)
Write a content to a file.
at line 75
void
touch(string $location, bool $force = false)
Write a empty content to a file.
at line 86
void
delete(string $location)
Delete a file.
at line 96
void
deleteDictionary(string $path, string|null $ext = null)
Delete all files in a directory.
at line 114
static File
system()
Create a instance of the class.