\OCP\Files\CacheICacheEntry

meta data for a file or folder

Summary

Methods
Constants
getId()
getStorageId()
getPath()
getName()
getMimeType()
getMimePart()
getSize()
getMTime()
getStorageMTime()
getEtag()
getPermissions()
isEncrypted()
DIRECTORY_MIMETYPE
No protected methods found
N/A
No private methods found
N/A

Constants

DIRECTORY_MIMETYPE

DIRECTORY_MIMETYPE

Methods

getId()

getId() : integer

Get the numeric id of a file

Returns

integer

getStorageId()

getStorageId() : integer

Get the numeric id for the storage

Returns

integer

getPath()

getPath() : string

Get the path of the file relative to the storage root

Returns

string

getName()

getName() : string

Get the file name

Returns

string

getMimeType()

getMimeType() : string

Get the full mimetype

Returns

string

getMimePart()

getMimePart() : string

Get the first part of the mimetype

Returns

string

getSize()

getSize() : integer

Get the file size in bytes

Returns

integer

getMTime()

getMTime() : integer

Get the last modified date as unix timestamp

Returns

integer

getStorageMTime()

getStorageMTime() : integer

Get the last modified date on the storage as unix timestamp

Note that when a file is updated we also update the mtime of all parent folders to make it visible to the user which folder has had updates most recently This can differ from the mtime on the underlying storage which usually only changes when a direct child is added, removed or renamed

Returns

integer

getEtag()

getEtag() : string

Get the etag for the file

An etag is used for change detection of files and folders, an etag of a file changes whenever the content of the file changes Etag for folders change whenever a file in the folder has changed

Returns

string

getPermissions()

getPermissions() : integer

Get the permissions for the file stored as bitwise combination of \OCP\PERMISSION_READ, \OCP\PERMISSION_CREATE \OCP\PERMISSION_UPDATE, \OCP\PERMISSION_DELETE and \OCP\PERMISSION_SHARE

Returns

integer

isEncrypted()

isEncrypted() : boolean

Check if the file is encrypted

Returns

boolean