File¶
-
class
OC\Files\Node\File¶ Source: lib/private/Files/Node/File.php#36 Parent: OC\Files\Node\NodeImplements: OCP\Files\File
Methods¶
-
protected
OC\Files\Node\File::createNonExistingNode($path)¶ - Creates a Folder that represents a non-existing path
Source: Parameters: - $path (string) path
Returns: string non-existing node class
-
public
OC\Files\Node\File::getContent()¶ Source: lib/private/Files/Node/File.php#52 Returns: string Throws: \OCP\Files\NotPermittedExceptionThrows: \OCP\Lock\LockedExceptionThrows: \OCP\Files\NotPermittedExceptionThrows: \OCP\Lock\LockedException
-
public
OC\Files\Node\File::putContent($data)¶ Source: Parameters: - $data (string | resource)
Throws: Throws: Throws: Throws: Throws: Throws: Throws: Throws: Throws:
-
public
OC\Files\Node\File::fopen($mode)¶ Source: Parameters: - $mode (string)
Returns: resource
Throws: Throws: Throws: Throws:
-
public
OC\Files\Node\File::delete()¶ Source: lib/private/Files/Node/File.php#128 Throws: \OCP\Files\NotPermittedExceptionThrows: \OCP\Files\InvalidPathExceptionThrows: \OCP\Files\NotFoundExceptionThrows: \OCP\Files\NotPermittedExceptionThrows: \OCP\Files\InvalidPathExceptionThrows: \OCP\Files\NotFoundExceptionThrows: \OCP\Files\NotPermittedExceptionThrows: \OCP\Files\InvalidPathExceptionThrows: \OCP\Files\NotFoundException
-
public
OC\Files\Node\File::hash($type, $raw=false)¶ Source: Parameters: - $type (string)
- $raw (bool)
Returns: string
-
public
OC\Files\Node\File::getChecksum()¶ Source: lib/private/Files/Node/File.php#154
-
public
OC\Files\Node\File::getExtension()¶ Source: lib/private/Files/Node/File.php#158