File
final class File (View source)
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
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.
static File
system()
Create a instance of the class.