$phpgw->vfs->read_file($file) Returns the data from $file. You must send the complete path to the file.
Example:
$data = $phpgw->vfs->read_file("/some/dir/to/file.txt"); |
$phpgw->vfs->write_file($file, $contents) Write data to $file. You must send the complete path to the file.
Example:
$data = $phpgw->vfs->write_file("/some/dir/to/file.txt"); |
$phpgw->vfs->read_userfile($file) Returns the data from $file, which resides in the users private dir.
Example:
$data = $phpgw->vfs->read_userfile("file.txt"); |
$phpgw->write_userfile($file, $contents) Writes data to $file, which resides in the users private dir.
Example:
$data = $phpgw->vfs->write_userfile("file.txt"); |
$phpgw->vfs->list_userfiles() Returns an array which has the list of files in the users private dir.
Example:
$filelist = array(); $filelist = $phpgw->vfs->list_userfiles(); |