$disk
$disk :
Storage class handles file storage through different storage drivers.
getKeys(string $key = '', boolean|integer $recursive = false) : array
Returns an array of all keys (files and directories)
string | $key | Key of a directory to get keys from. If not set - keys will be read from the storage root. |
boolean|integer | $recursive | false = non-recursive, true = recursive, int = recursion depth |
getTimeModified(string $key, boolean $asDateTimeObject = false) : \app\framework\Component\Storage\UNIX
Returns the last modified time
string | $key | |
boolean | $asDateTimeObject | (Optional) Return as DateTimeObject if true |
Timestamp or DateTimeObject
isDirectory(string $key) : boolean
TODO: write actual method Check if key is a directory<br /> Requires '\app\framework\Component\Storage\Driver\DirectoryAwareInterface' to be implemented by a Driver class
string | $key |