nupp.io.files.messages
Module contents
Types
| Type | Kind | Description |
|---|---|---|
Capabilities | record | The exact filesystem guarantees supplied by one provider. |
Entry | record | One immediate child of a listed directory. |
Info | record | Metadata about one resolved filesystem object. |
Kind | type | |
Mode | type | |
Origin | type | |
TemporaryOptions | record | Naming and placement options for a native temporary path. |
UserFolder | type |
Types#
Capabilitiesrecord#
record Capabilities ...The exact filesystem guarantees supplied by one provider.
Members
| Name | Kind | Description |
|---|---|---|
available | field | Whether filesystem access is available at all. |
arbitraryPaths | field | Whether ordinary native paths are accepted. |
symbolicLinks | field | Whether symbolic links can be queried and created. |
readOnlyAttributes | field | Whether read-only attributes can be changed. |
glob | field | Whether filesystem globbing is supported. |
rename | field | Whether paths can be renamed. |
atomicWrite | field | Whether atomic replacement writes are supported. |
temporaryPaths | field | Whether temporary path owners can be created. |
concurrentOpenHandles | field | Whether one path may have multiple open handles. |
currentDirectory | field | Whether a process working directory exists. |
userFolders | field | Whether conventional user folders can be resolved. |
executableDirectory | field | Whether the running executable's directory can be resolved. |
persistentStorageRequest | field | Whether persistent browser storage can be requested. |
concurrentOpenHandlesfield#
concurrentOpenHandles: booleanWhether one path may have multiple open handles.
executableDirectoryfield#
executableDirectory: booleanWhether the running executable's directory can be resolved.
persistentStorageRequestfield#
persistentStorageRequest: booleanWhether persistent browser storage can be requested.
Entryrecord#
record Entry ...One immediate child of a listed directory.
Inforecord#
record Info ...Metadata about one resolved filesystem object.
Members
| Name | Kind | Description |
|---|---|---|
kind | field | The object's filesystem kind. |
size | field | Its byte size, or zero for a directory. |
modified | field | Its modification time in milliseconds since the Unix epoch, the unit nupp.time.wallTime answers in, with whatever... |
readOnly | field | Whether the native platform refuses writes. |
modifiedfield#
modified: numberIts modification time in milliseconds since the Unix epoch, the unit nupp.time.wallTime answers in, with whatever fraction the platform records.
Kindtype#
type Kind = "file" | "directory" | "symlink" | "other"Modetype#
type Mode = "r" | "w" | "a" | "r+" | "w+" | "a+"Origintype#
type Origin = "set" | "current" | "end"TemporaryOptionsrecord#
record TemporaryOptions ...Naming and placement options for a native temporary path.
Members
| Name | Kind | Description |
|---|---|---|
directory | field | The native directory to create the path in. |
prefix | field | A separator-free fragment placed before the random portion of the name. |
suffix | field | A separator-free fragment placed after the random portion of the name. |
prefixfield#
prefix: string?A separator-free fragment placed before the random portion of the name.
UserFoldertype#
type UserFolder = "home" | "documents" | "downloads" | "desktop" | "pictures" | "music" | "videos"