File · Mecha CMS

Working with files and folders.

$file->append()

Append text to a file.

$file::config

Static configurations.

$file->consent()

Set file permission.

$file->copyTo()

Copy a file.

$file->delete()

Delete a file or folder.

$file::exist()

Check the existence of a file/folder.

$file::explore()

List all files and folders from a folder.

$file::export()

Export data as a PHP file.

$file->get()

Reading file line by line.

$file->import()

Import a PHP file.

$file::inspect()

Inspect file details.

$file->moveTo()

Move a file or folder.

$file::open()

Open a file.

$file->prepend()

Prepend text to a file.

$file::upload()

Upload a file.

$file->read()

Output the file content.

$file->renameTo()

Rename a file or folder.

$file->save()

Update a file.

$file->saveTo()

Save a file to.

$file::size()

Convert file size.

$file::write()

Create a file.