The FileStat
-type represents metadata about a file
The `FileStat`-type represents metadata about a file
(ctime file-stat)
The creation timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC.
The creation timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC.
(mtime file-stat)
The modification timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC.
Note: If the file changed, it is important to provide an updated mtime
that advanced
from the previous value. Otherwise there may be optimizations in place that will not show
the updated file contents in an editor for example.
The modification timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC. *Note:* If the file changed, it is important to provide an updated `mtime` that advanced from the previous value. Otherwise there may be optimizations in place that will not show the updated file contents in an editor for example.
(permissions file-stat)
The permissions of the file, e.g. whether the file is readonly.
Note: This value might be a bitmask, e.g. FilePermission.Readonly | FilePermission.Other
.
The permissions of the file, e.g. whether the file is readonly. *Note:* This value might be a bitmask, e.g. `FilePermission.Readonly | FilePermission.Other`.
(set-ctime! file-stat value)
The creation timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC.
The creation timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC.
(set-mtime! file-stat value)
The modification timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC.
Note: If the file changed, it is important to provide an updated mtime
that advanced
from the previous value. Otherwise there may be optimizations in place that will not show
the updated file contents in an editor for example.
The modification timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC. *Note:* If the file changed, it is important to provide an updated `mtime` that advanced from the previous value. Otherwise there may be optimizations in place that will not show the updated file contents in an editor for example.
(set-permissions! file-stat value)
The permissions of the file, e.g. whether the file is readonly.
Note: This value might be a bitmask, e.g. FilePermission.Readonly | FilePermission.Other
.
The permissions of the file, e.g. whether the file is readonly. *Note:* This value might be a bitmask, e.g. `FilePermission.Readonly | FilePermission.Other`.
(set-size! file-stat value)
The size in bytes.
Note: If the file changed, it is important to provide an updated size
. Otherwise there
may be optimizations in place that will not show the updated file contents in an editor for
example.
The size in bytes. *Note:* If the file changed, it is important to provide an updated `size`. Otherwise there may be optimizations in place that will not show the updated file contents in an editor for example.
(set-type! file-stat value)
The type of the file, e.g. is a regular file, a directory, or symbolic link to a file.
Note: This value might be a bitmask, e.g. FileType.File | FileType.SymbolicLink
.
The type of the file, e.g. is a regular file, a directory, or symbolic link to a file. *Note:* This value might be a bitmask, e.g. `FileType.File | FileType.SymbolicLink`.
(size file-stat)
The size in bytes.
Note: If the file changed, it is important to provide an updated size
. Otherwise there
may be optimizations in place that will not show the updated file contents in an editor for
example.
The size in bytes. *Note:* If the file changed, it is important to provide an updated `size`. Otherwise there may be optimizations in place that will not show the updated file contents in an editor for example.
(type file-stat)
The type of the file, e.g. is a regular file, a directory, or symbolic link to a file.
Note: This value might be a bitmask, e.g. FileType.File | FileType.SymbolicLink
.
The type of the file, e.g. is a regular file, a directory, or symbolic link to a file. *Note:* This value might be a bitmask, e.g. `FileType.File | FileType.SymbolicLink`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close