Methods
-
Class construct
-
Read the contents from a file in container.
-
Write to or Create a file in container.
-
Delete a file in container.
Methods Details
-
public function __construct(array $config, variable $curl)Class construct
-
public function read(string $name, string $filepath)Read the contents from a file in container.
$lxd->containers->files->read('conainer-name', '/path/to/file');
-
public function write(string $name, string $filepath, string $data, variable $mode, int $uid, int $gid)Write to or Create a file in container.
$lxd->containers->files->write('container-name', '/path/to/file', 'File Contents', 0644, 0, 0);
-
public function delete(string $name, string $filepath)Delete a file in container.
$lxd->containers->files->delete('container-name', '/path/to/file');