CloudStorageFileStat
A CloudStorageFileStat
is returned by the CloudStorage.stat()
method and contains several statistics about the file.
API
The CloudStorageFileStat
object has the following properties:
size
(number
): The filesize in bytes. If no size could be determined, this is0
.birthtimeMs
(number
): The timestamp in milliseconds indicating the creation time of the file.mtimeMs
(number
): The timestamp in milliseconds indicating the time of the last modification of the file.birthtime
(Date
): A date object created frombirthtimeMs
.mtime
(Date
): A date object created frommtimeMs
.isDirectory()
(() => boolean
): A function that returns aboolean
determining whether or not this is a directory.isFile()
(() => boolean
): A function that returns aboolean
determining whether or not this is a file.