FileInfo

class OC\Files\FileInfo
Source:lib/private/Files/FileInfo.php#40
Implements:OCP\Files\FileInfo ArrayAccess

Properties

Methods

public OC\Files\FileInfo::__construct($path, $storage, $internalPath, $data, $mount, $owner=null)
Source:

lib/private/Files/FileInfo.php#98

Parameters:
public OC\Files\FileInfo::offsetSet($offset, $value)
Source:lib/private/Files/FileInfo.php#108
public OC\Files\FileInfo::offsetExists($offset)
Source:lib/private/Files/FileInfo.php#112
public OC\Files\FileInfo::offsetUnset($offset)
Source:lib/private/Files/FileInfo.php#116
public OC\Files\FileInfo::offsetGet($offset)
Source:lib/private/Files/FileInfo.php#120
public OC\Files\FileInfo::getPath()
Source:lib/private/Files/FileInfo.php#141
Returns:string
public OC\Files\FileInfo::getStorage()
Source:lib/private/Files/FileInfo.php#148
Returns:\OCP\Files\Storage
public OC\Files\FileInfo::getInternalPath()
Source:lib/private/Files/FileInfo.php#155
Returns:string
public OC\Files\FileInfo::getId()
Get FileInfo ID or null in case of part file
Source:lib/private/Files/FileInfo.php#164
Returns:int | null
public OC\Files\FileInfo::getMimetype()
Source:lib/private/Files/FileInfo.php#171
Returns:string
public OC\Files\FileInfo::getMimePart()
Source:lib/private/Files/FileInfo.php#178
Returns:string
public OC\Files\FileInfo::getName()
Source:lib/private/Files/FileInfo.php#185
Returns:string
public OC\Files\FileInfo::getEtag()
Source:lib/private/Files/FileInfo.php#192
Returns:string
public OC\Files\FileInfo::getSize($includeMounts=true)
Source:lib/private/Files/FileInfo.php#205
Returns:int
public OC\Files\FileInfo::getMTime()
Source:lib/private/Files/FileInfo.php#217
Returns:int
public OC\Files\FileInfo::isEncrypted()
Source:lib/private/Files/FileInfo.php#225
Returns:bool
public OC\Files\FileInfo::getEncryptedVersion()
Return the currently version used for the HMAC in the encryption app
Source:lib/private/Files/FileInfo.php#234
Returns:int
public OC\Files\FileInfo::getPermissions()
Source:lib/private/Files/FileInfo.php#241
Returns:int
public OC\Files\FileInfo::getType()
Source:lib/private/Files/FileInfo.php#252
Returns:string \OCP\Files\FileInfo::TYPE_FILE|\OCP\Files\FileInfo::TYPE_FOLDER
public OC\Files\FileInfo::getData()
Source:lib/private/Files/FileInfo.php#259
protected OC\Files\FileInfo::checkPermissions($permissions)
Source:

lib/private/Files/FileInfo.php#267

Parameters:
  • $permissions (int)
Returns:

bool

public OC\Files\FileInfo::isReadable()
Source:lib/private/Files/FileInfo.php#274
Returns:bool
public OC\Files\FileInfo::isUpdateable()
Source:lib/private/Files/FileInfo.php#281
Returns:bool
public OC\Files\FileInfo::isCreatable()
Check whether new files or folders can be created inside this folder
Source:lib/private/Files/FileInfo.php#290
Returns:bool
public OC\Files\FileInfo::isDeletable()
Source:lib/private/Files/FileInfo.php#297
Returns:bool
public OC\Files\FileInfo::isShareable()
Source:lib/private/Files/FileInfo.php#304
Returns:bool
public OC\Files\FileInfo::isShared()
Check if a file or folder is shared
Source:lib/private/Files/FileInfo.php#313
Returns:bool
public OC\Files\FileInfo::isMounted()
Source:lib/private/Files/FileInfo.php#323
public OC\Files\FileInfo::getMountPoint()
Get the mountpoint the file belongs to
Source:lib/private/Files/FileInfo.php#342
Returns:\OCP\Files\Mount\IMountPoint
public OC\Files\FileInfo::getOwner()
Get the owner of the file
Source:lib/private/Files/FileInfo.php#351
Returns:\OCP\IUser
public OC\Files\FileInfo::setSubMounts($mounts)
Source:

lib/private/Files/FileInfo.php#358

Parameters:
public OC\Files\FileInfo::addSubEntry($data, $entryPath)
Add a cache entry which is the child of this folder
Sets the size, etag and size to for cross-storage childs
Source:

lib/private/Files/FileInfo.php#385

Parameters:
public OC\Files\FileInfo::getChecksum()
Source:lib/private/Files/FileInfo.php#402
public OC\Files\FileInfo::getExtension()
Source:lib/private/Files/FileInfo.php#406
public OC\Files\FileInfo::getCreationTime()
Source:lib/private/Files/FileInfo.php#410
public OC\Files\FileInfo::getUploadTime()
Source:lib/private/Files/FileInfo.php#414