@duplojs/server 0.1.0-beta.3 → 0.1.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/command/argument.d.ts +2 -2
- package/dist/command/create.cjs +7 -1
- package/dist/command/create.d.ts +3 -3
- package/dist/command/create.mjs +7 -1
- package/dist/command/error.cjs +24 -0
- package/dist/command/error.d.ts +9 -1
- package/dist/command/error.mjs +24 -0
- package/dist/command/exec.d.ts +4 -3
- package/dist/command/help.d.ts +1 -1
- package/dist/command/index.cjs +4 -0
- package/dist/command/index.mjs +4 -2
- package/dist/command/options/base.cjs +21 -13
- package/dist/command/options/base.d.ts +6 -0
- package/dist/command/options/base.mjs +20 -14
- package/dist/command/options/defaults/array.d.ts +6 -4
- package/dist/command/options/defaults/boolean.cjs +21 -7
- package/dist/command/options/defaults/boolean.d.ts +6 -3
- package/dist/command/options/defaults/boolean.mjs +20 -8
- package/dist/command/options/defaults/simple.d.ts +6 -4
- package/dist/command/types/forbiddenInvalidIdentifier.d.ts +6 -0
- package/dist/command/types/index.d.ts +1 -0
- package/dist/common/environmentVariable/index.d.ts +1 -1
- package/dist/common/environmentVariable/overrideEnvironmentVariables.d.ts +1 -1
- package/dist/common/environmentVariable/parseEnvironmentFiles.d.ts +1 -1
- package/dist/dataStructure/helper/file.d.ts +1 -1
- package/dist/dataStructure/helper/folder.d.ts +1 -1
- package/dist/file/appendFile.cjs +10 -0
- package/dist/file/appendFile.d.ts +13 -13
- package/dist/file/appendFile.mjs +1 -1
- package/dist/file/appendTextFile.cjs +10 -0
- package/dist/file/appendTextFile.d.ts +13 -13
- package/dist/file/appendTextFile.mjs +1 -1
- package/dist/file/copy.cjs +10 -0
- package/dist/file/copy.d.ts +13 -13
- package/dist/file/copy.mjs +1 -1
- package/dist/file/createEntryInterface.cjs +4 -1
- package/dist/file/createEntryInterface.d.ts +1 -1
- package/dist/file/createEntryInterface.mjs +3 -1
- package/dist/file/ensureDirectory.cjs +8 -0
- package/dist/file/ensureDirectory.d.ts +10 -10
- package/dist/file/ensureDirectory.mjs +1 -1
- package/dist/file/ensureFile.cjs +9 -0
- package/dist/file/ensureFile.d.ts +11 -11
- package/dist/file/ensureFile.mjs +1 -1
- package/dist/file/exists.cjs +5 -0
- package/dist/file/exists.d.ts +7 -7
- package/dist/file/exists.mjs +1 -1
- package/dist/file/fileInterface.cjs +1 -1
- package/dist/file/fileInterface.d.ts +5 -6
- package/dist/file/fileInterface.mjs +1 -1
- package/dist/file/folderInterface.cjs +1 -1
- package/dist/file/folderInterface.d.ts +5 -6
- package/dist/file/folderInterface.mjs +1 -1
- package/dist/file/index.cjs +506 -0
- package/dist/file/index.mjs +285 -32
- package/dist/file/link.cjs +11 -0
- package/dist/file/link.d.ts +14 -14
- package/dist/file/link.mjs +1 -1
- package/dist/file/linkStat.cjs +6 -0
- package/dist/file/linkStat.d.ts +8 -8
- package/dist/file/linkStat.mjs +1 -1
- package/dist/file/makeDirectory.cjs +10 -0
- package/dist/file/makeDirectory.d.ts +12 -12
- package/dist/file/makeDirectory.mjs +1 -1
- package/dist/file/makeTemporaryDirectory.cjs +7 -0
- package/dist/file/makeTemporaryDirectory.d.ts +7 -7
- package/dist/file/makeTemporaryDirectory.mjs +1 -1
- package/dist/file/makeTemporaryFile.cjs +8 -0
- package/dist/file/makeTemporaryFile.d.ts +8 -8
- package/dist/file/makeTemporaryFile.mjs +1 -1
- package/dist/file/move.cjs +11 -0
- package/dist/file/move.d.ts +14 -14
- package/dist/file/move.mjs +1 -1
- package/dist/file/readDirectory.cjs +6 -0
- package/dist/file/readDirectory.d.ts +8 -8
- package/dist/file/readDirectory.mjs +1 -1
- package/dist/file/readFile.cjs +7 -0
- package/dist/file/readFile.d.ts +9 -9
- package/dist/file/readFile.mjs +1 -1
- package/dist/file/readJsonFile.cjs +7 -0
- package/dist/file/readJsonFile.d.ts +9 -9
- package/dist/file/readJsonFile.mjs +1 -1
- package/dist/file/readLink.cjs +6 -0
- package/dist/file/readLink.d.ts +8 -8
- package/dist/file/readLink.mjs +1 -1
- package/dist/file/readTextFile.cjs +7 -0
- package/dist/file/readTextFile.d.ts +9 -9
- package/dist/file/readTextFile.mjs +1 -1
- package/dist/file/realPath.cjs +5 -0
- package/dist/file/realPath.d.ts +7 -7
- package/dist/file/realPath.mjs +1 -1
- package/dist/file/relocate.cjs +11 -0
- package/dist/file/relocate.d.ts +14 -14
- package/dist/file/relocate.mjs +1 -1
- package/dist/file/remove.cjs +9 -0
- package/dist/file/remove.d.ts +11 -11
- package/dist/file/remove.mjs +1 -1
- package/dist/file/rename.cjs +11 -0
- package/dist/file/rename.d.ts +14 -14
- package/dist/file/rename.mjs +1 -1
- package/dist/file/setMode.cjs +6 -0
- package/dist/file/setMode.d.ts +9 -9
- package/dist/file/setMode.mjs +1 -1
- package/dist/file/setOwner.cjs +6 -0
- package/dist/file/setOwner.d.ts +9 -9
- package/dist/file/setOwner.mjs +1 -1
- package/dist/file/setTime.cjs +6 -0
- package/dist/file/setTime.d.ts +9 -9
- package/dist/file/setTime.mjs +1 -1
- package/dist/file/stat.cjs +6 -0
- package/dist/file/stat.d.ts +8 -8
- package/dist/file/stat.mjs +1 -1
- package/dist/file/symlink.cjs +9 -0
- package/dist/file/symlink.d.ts +12 -12
- package/dist/file/symlink.mjs +1 -1
- package/dist/file/truncate.cjs +10 -0
- package/dist/file/truncate.d.ts +12 -12
- package/dist/file/truncate.mjs +1 -1
- package/dist/file/unknownEntryInterface.cjs +3 -1
- package/dist/file/unknownEntryInterface.d.ts +4 -4
- package/dist/file/unknownEntryInterface.mjs +2 -1
- package/dist/file/walkDirectory.cjs +11 -1
- package/dist/file/walkDirectory.d.ts +9 -9
- package/dist/file/walkDirectory.mjs +6 -2
- package/dist/file/writeFile.cjs +10 -0
- package/dist/file/writeFile.d.ts +13 -13
- package/dist/file/writeFile.mjs +1 -1
- package/dist/file/writeJsonFile.cjs +10 -0
- package/dist/file/writeJsonFile.d.ts +13 -13
- package/dist/file/writeJsonFile.mjs +1 -1
- package/dist/file/writeTextFile.cjs +10 -0
- package/dist/file/writeTextFile.d.ts +13 -13
- package/dist/file/writeTextFile.mjs +1 -1
- package/dist/override.d.ts +8 -0
- package/package.json +3 -3
package/dist/file/index.mjs
CHANGED
|
@@ -1,41 +1,294 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { appendFile } from "./appendFile.mjs";
|
|
3
|
-
import { appendTextFile } from "./appendTextFile.mjs";
|
|
4
|
-
import { copy } from "./copy.mjs";
|
|
5
|
-
import { stat } from "./stat.mjs";
|
|
6
|
-
import { rename } from "./rename.mjs";
|
|
7
|
-
import { exists } from "./exists.mjs";
|
|
8
|
-
import { move } from "./move.mjs";
|
|
9
|
-
import { remove } from "./remove.mjs";
|
|
10
|
-
import { relocate } from "./relocate.mjs";
|
|
2
|
+
import { AppendFileError, AppendFileErrorBusy, AppendFileErrorInvalidArgument, AppendFileErrorIsDirectory, AppendFileErrorNoSpace, AppendFileErrorNotDirectory, AppendFileErrorNotFound, AppendFileErrorPermissionDenied, AppendFileErrorReadOnly, AppendFileErrorTooManyOpenFiles, appendFile } from "./appendFile.mjs";
|
|
3
|
+
import { AppendTextFileError, AppendTextFileErrorBusy, AppendTextFileErrorInvalidArgument, AppendTextFileErrorIsDirectory, AppendTextFileErrorNoSpace, AppendTextFileErrorNotDirectory, AppendTextFileErrorNotFound, AppendTextFileErrorPermissionDenied, AppendTextFileErrorReadOnly, AppendTextFileErrorTooManyOpenFiles, appendTextFile } from "./appendTextFile.mjs";
|
|
4
|
+
import { CopyError, CopyErrorAlreadyExists, CopyErrorBusy, CopyErrorInvalidArgument, CopyErrorNoSpace, CopyErrorNotDirectory, CopyErrorNotFound, CopyErrorPermissionDenied, CopyErrorReadOnly, CopyErrorTooManyOpenFiles, copy } from "./copy.mjs";
|
|
5
|
+
import { StatError, StatErrorBusy, StatErrorNotDirectory, StatErrorNotFound, StatErrorPermissionDenied, StatErrorTooManyOpenFiles, stat } from "./stat.mjs";
|
|
6
|
+
import { RenameError, RenameErrorAlreadyExists, RenameErrorBusy, RenameErrorCrossDevice, RenameErrorDirectoryNotEmpty, RenameErrorInvalidArgument, RenameErrorIsDirectory, RenameErrorNotDirectory, RenameErrorNotFound, RenameErrorPermissionDenied, RenameErrorReadOnly, rename } from "./rename.mjs";
|
|
7
|
+
import { ExistsError, ExistsErrorNotDirectory, ExistsErrorNotFound, ExistsErrorPermissionDenied, ExistsErrorTooManyOpenFiles, exists } from "./exists.mjs";
|
|
8
|
+
import { MoveError, MoveErrorAlreadyExists, MoveErrorBusy, MoveErrorCrossDevice, MoveErrorDirectoryNotEmpty, MoveErrorInvalidArgument, MoveErrorIsDirectory, MoveErrorNotDirectory, MoveErrorNotFound, MoveErrorPermissionDenied, MoveErrorReadOnly, move } from "./move.mjs";
|
|
9
|
+
import { RemoveError, RemoveErrorBusy, RemoveErrorDirectoryNotEmpty, RemoveErrorInvalidArgument, RemoveErrorIsDirectory, RemoveErrorNotDirectory, RemoveErrorNotFound, RemoveErrorPermissionDenied, RemoveErrorReadOnly, remove } from "./remove.mjs";
|
|
10
|
+
import { RelocateError, RelocateErrorAlreadyExists, RelocateErrorBusy, RelocateErrorCrossDevice, RelocateErrorDirectoryNotEmpty, RelocateErrorInvalidArgument, RelocateErrorIsDirectory, RelocateErrorNotDirectory, RelocateErrorNotFound, RelocateErrorPermissionDenied, RelocateErrorReadOnly, relocate } from "./relocate.mjs";
|
|
11
11
|
import { createFileInterface, isFileInterface, isFileInterfaceFromUnknown } from "./fileInterface.mjs";
|
|
12
|
-
import { readDirectory } from "./readDirectory.mjs";
|
|
12
|
+
import { ReadDirectoryError, ReadDirectoryErrorBusy, ReadDirectoryErrorNotDirectory, ReadDirectoryErrorNotFound, ReadDirectoryErrorPermissionDenied, ReadDirectoryErrorTooManyOpenFiles, readDirectory } from "./readDirectory.mjs";
|
|
13
13
|
import { createUnknownEntryInterface, isUnknownEntryInterface, isUnknownEntryInterfaceFromUnknown } from "./unknownEntryInterface.mjs";
|
|
14
|
-
import { walkDirectory } from "./walkDirectory.mjs";
|
|
14
|
+
import { WalkDirectoryError, WalkDirectoryErrorBusy, WalkDirectoryErrorNotDirectory, WalkDirectoryErrorNotFound, WalkDirectoryErrorPermissionDenied, WalkDirectoryErrorTooManyOpenFiles, walkDirectory } from "./walkDirectory.mjs";
|
|
15
15
|
import { createFolderInterface, isFolderInterface, isFolderInterfaceFromUnknown } from "./folderInterface.mjs";
|
|
16
16
|
import { createEntryInterface } from "./createEntryInterface.mjs";
|
|
17
|
-
import { ensureDirectory } from "./ensureDirectory.mjs";
|
|
18
|
-
import { ensureFile } from "./ensureFile.mjs";
|
|
19
|
-
import { link } from "./link.mjs";
|
|
20
|
-
import { linkStat } from "./linkStat.mjs";
|
|
21
|
-
import { makeDirectory } from "./makeDirectory.mjs";
|
|
22
|
-
import { makeTemporaryDirectory } from "./makeTemporaryDirectory.mjs";
|
|
23
|
-
import { makeTemporaryFile } from "./makeTemporaryFile.mjs";
|
|
24
|
-
import { readFile } from "./readFile.mjs";
|
|
25
|
-
import { readJsonFile } from "./readJsonFile.mjs";
|
|
26
|
-
import { readLink } from "./readLink.mjs";
|
|
27
|
-
import { readTextFile } from "./readTextFile.mjs";
|
|
28
|
-
import { realPath } from "./realPath.mjs";
|
|
29
|
-
import { setMode } from "./setMode.mjs";
|
|
30
|
-
import { setOwner } from "./setOwner.mjs";
|
|
31
|
-
import { setTime } from "./setTime.mjs";
|
|
32
|
-
import { symlink } from "./symlink.mjs";
|
|
33
|
-
import { truncate } from "./truncate.mjs";
|
|
34
|
-
import { writeFile } from "./writeFile.mjs";
|
|
35
|
-
import { writeJsonFile } from "./writeJsonFile.mjs";
|
|
36
|
-
import { writeTextFile } from "./writeTextFile.mjs";
|
|
17
|
+
import { EnsureDirectoryError, EnsureDirectoryErrorBusy, EnsureDirectoryErrorInvalidArgument, EnsureDirectoryErrorNoSpace, EnsureDirectoryErrorNotDirectory, EnsureDirectoryErrorPermissionDenied, EnsureDirectoryErrorReadOnly, EnsureDirectoryErrorTooManyOpenFiles, ensureDirectory } from "./ensureDirectory.mjs";
|
|
18
|
+
import { EnsureFileError, EnsureFileErrorBusy, EnsureFileErrorInvalidArgument, EnsureFileErrorIsDirectory, EnsureFileErrorNoSpace, EnsureFileErrorNotDirectory, EnsureFileErrorPermissionDenied, EnsureFileErrorReadOnly, EnsureFileErrorTooManyOpenFiles, ensureFile } from "./ensureFile.mjs";
|
|
19
|
+
import { LinkError, LinkErrorAlreadyExists, LinkErrorBusy, LinkErrorCrossDevice, LinkErrorInvalidArgument, LinkErrorNoSpace, LinkErrorNotDirectory, LinkErrorNotFound, LinkErrorPermissionDenied, LinkErrorReadOnly, LinkErrorTooManyOpenFiles, link } from "./link.mjs";
|
|
20
|
+
import { LinkStatError, LinkStatErrorBusy, LinkStatErrorNotDirectory, LinkStatErrorNotFound, LinkStatErrorPermissionDenied, LinkStatErrorTooManyOpenFiles, linkStat } from "./linkStat.mjs";
|
|
21
|
+
import { MakeDirectoryError, MakeDirectoryErrorAlreadyExists, MakeDirectoryErrorBusy, MakeDirectoryErrorInvalidArgument, MakeDirectoryErrorNoSpace, MakeDirectoryErrorNotDirectory, MakeDirectoryErrorNotFound, MakeDirectoryErrorPermissionDenied, MakeDirectoryErrorReadOnly, MakeDirectoryErrorTooManyOpenFiles, makeDirectory } from "./makeDirectory.mjs";
|
|
22
|
+
import { MakeTemporaryDirectoryError, MakeTemporaryDirectoryErrorInvalidArgument, MakeTemporaryDirectoryErrorNoSpace, MakeTemporaryDirectoryErrorNotDirectory, MakeTemporaryDirectoryErrorPermissionDenied, MakeTemporaryDirectoryErrorReadOnly, MakeTemporaryDirectoryErrorTooManyOpenFiles, makeTemporaryDirectory } from "./makeTemporaryDirectory.mjs";
|
|
23
|
+
import { MakeTemporaryFileError, MakeTemporaryFileErrorAlreadyExists, MakeTemporaryFileErrorInvalidArgument, MakeTemporaryFileErrorNoSpace, MakeTemporaryFileErrorNotDirectory, MakeTemporaryFileErrorPermissionDenied, MakeTemporaryFileErrorReadOnly, MakeTemporaryFileErrorTooManyOpenFiles, makeTemporaryFile } from "./makeTemporaryFile.mjs";
|
|
24
|
+
import { ReadFileError, ReadFileErrorBusy, ReadFileErrorIsDirectory, ReadFileErrorNotDirectory, ReadFileErrorNotFound, ReadFileErrorPermissionDenied, ReadFileErrorTooManyOpenFiles, readFile } from "./readFile.mjs";
|
|
25
|
+
import { ReadJsonFileError, ReadJsonFileErrorBusy, ReadJsonFileErrorIsDirectory, ReadJsonFileErrorNotDirectory, ReadJsonFileErrorNotFound, ReadJsonFileErrorPermissionDenied, ReadJsonFileErrorTooManyOpenFiles, readJsonFile } from "./readJsonFile.mjs";
|
|
26
|
+
import { ReadLinkError, ReadLinkErrorInvalidArgument, ReadLinkErrorNotDirectory, ReadLinkErrorNotFound, ReadLinkErrorPermissionDenied, ReadLinkErrorTooManyOpenFiles, readLink } from "./readLink.mjs";
|
|
27
|
+
import { ReadTextFileError, ReadTextFileErrorBusy, ReadTextFileErrorIsDirectory, ReadTextFileErrorNotDirectory, ReadTextFileErrorNotFound, ReadTextFileErrorPermissionDenied, ReadTextFileErrorTooManyOpenFiles, readTextFile } from "./readTextFile.mjs";
|
|
28
|
+
import { RealPathError, RealPathErrorNotDirectory, RealPathErrorNotFound, RealPathErrorPermissionDenied, RealPathErrorTooManyOpenFiles, realPath } from "./realPath.mjs";
|
|
29
|
+
import { SetModeError, SetModeErrorInvalidArgument, SetModeErrorNotDirectory, SetModeErrorNotFound, SetModeErrorPermissionDenied, SetModeErrorReadOnly, setMode } from "./setMode.mjs";
|
|
30
|
+
import { SetOwnerError, SetOwnerErrorInvalidArgument, SetOwnerErrorNotDirectory, SetOwnerErrorNotFound, SetOwnerErrorPermissionDenied, SetOwnerErrorReadOnly, setOwner } from "./setOwner.mjs";
|
|
31
|
+
import { SetTimeError, SetTimeErrorInvalidArgument, SetTimeErrorNotDirectory, SetTimeErrorNotFound, SetTimeErrorPermissionDenied, SetTimeErrorReadOnly, setTime } from "./setTime.mjs";
|
|
32
|
+
import { SymlinkError, SymlinkErrorAlreadyExists, SymlinkErrorBusy, SymlinkErrorInvalidArgument, SymlinkErrorNotDirectory, SymlinkErrorNotFound, SymlinkErrorPermissionDenied, SymlinkErrorReadOnly, SymlinkErrorTooManyOpenFiles, symlink } from "./symlink.mjs";
|
|
33
|
+
import { TruncateError, TruncateErrorBusy, TruncateErrorInvalidArgument, TruncateErrorIsDirectory, TruncateErrorNoSpace, TruncateErrorNotDirectory, TruncateErrorNotFound, TruncateErrorPermissionDenied, TruncateErrorReadOnly, TruncateErrorTooManyOpenFiles, truncate } from "./truncate.mjs";
|
|
34
|
+
import { WriteFileError, WriteFileErrorBusy, WriteFileErrorInvalidArgument, WriteFileErrorIsDirectory, WriteFileErrorNoSpace, WriteFileErrorNotDirectory, WriteFileErrorNotFound, WriteFileErrorPermissionDenied, WriteFileErrorReadOnly, WriteFileErrorTooManyOpenFiles, writeFile } from "./writeFile.mjs";
|
|
35
|
+
import { WriteJsonFileError, WriteJsonFileErrorBusy, WriteJsonFileErrorInvalidArgument, WriteJsonFileErrorIsDirectory, WriteJsonFileErrorNoSpace, WriteJsonFileErrorNotDirectory, WriteJsonFileErrorNotFound, WriteJsonFileErrorPermissionDenied, WriteJsonFileErrorReadOnly, WriteJsonFileErrorTooManyOpenFiles, writeJsonFile } from "./writeJsonFile.mjs";
|
|
36
|
+
import { WriteTextFileError, WriteTextFileErrorBusy, WriteTextFileErrorInvalidArgument, WriteTextFileErrorIsDirectory, WriteTextFileErrorNoSpace, WriteTextFileErrorNotDirectory, WriteTextFileErrorNotFound, WriteTextFileErrorPermissionDenied, WriteTextFileErrorReadOnly, WriteTextFileErrorTooManyOpenFiles, writeTextFile } from "./writeTextFile.mjs";
|
|
37
37
|
//#region scripts/file/index.ts
|
|
38
38
|
var file_exports = /* @__PURE__ */ __exportAll({
|
|
39
|
+
AppendFileError: () => AppendFileError,
|
|
40
|
+
AppendFileErrorBusy: () => AppendFileErrorBusy,
|
|
41
|
+
AppendFileErrorInvalidArgument: () => AppendFileErrorInvalidArgument,
|
|
42
|
+
AppendFileErrorIsDirectory: () => AppendFileErrorIsDirectory,
|
|
43
|
+
AppendFileErrorNoSpace: () => AppendFileErrorNoSpace,
|
|
44
|
+
AppendFileErrorNotDirectory: () => AppendFileErrorNotDirectory,
|
|
45
|
+
AppendFileErrorNotFound: () => AppendFileErrorNotFound,
|
|
46
|
+
AppendFileErrorPermissionDenied: () => AppendFileErrorPermissionDenied,
|
|
47
|
+
AppendFileErrorReadOnly: () => AppendFileErrorReadOnly,
|
|
48
|
+
AppendFileErrorTooManyOpenFiles: () => AppendFileErrorTooManyOpenFiles,
|
|
49
|
+
AppendTextFileError: () => AppendTextFileError,
|
|
50
|
+
AppendTextFileErrorBusy: () => AppendTextFileErrorBusy,
|
|
51
|
+
AppendTextFileErrorInvalidArgument: () => AppendTextFileErrorInvalidArgument,
|
|
52
|
+
AppendTextFileErrorIsDirectory: () => AppendTextFileErrorIsDirectory,
|
|
53
|
+
AppendTextFileErrorNoSpace: () => AppendTextFileErrorNoSpace,
|
|
54
|
+
AppendTextFileErrorNotDirectory: () => AppendTextFileErrorNotDirectory,
|
|
55
|
+
AppendTextFileErrorNotFound: () => AppendTextFileErrorNotFound,
|
|
56
|
+
AppendTextFileErrorPermissionDenied: () => AppendTextFileErrorPermissionDenied,
|
|
57
|
+
AppendTextFileErrorReadOnly: () => AppendTextFileErrorReadOnly,
|
|
58
|
+
AppendTextFileErrorTooManyOpenFiles: () => AppendTextFileErrorTooManyOpenFiles,
|
|
59
|
+
CopyError: () => CopyError,
|
|
60
|
+
CopyErrorAlreadyExists: () => CopyErrorAlreadyExists,
|
|
61
|
+
CopyErrorBusy: () => CopyErrorBusy,
|
|
62
|
+
CopyErrorInvalidArgument: () => CopyErrorInvalidArgument,
|
|
63
|
+
CopyErrorNoSpace: () => CopyErrorNoSpace,
|
|
64
|
+
CopyErrorNotDirectory: () => CopyErrorNotDirectory,
|
|
65
|
+
CopyErrorNotFound: () => CopyErrorNotFound,
|
|
66
|
+
CopyErrorPermissionDenied: () => CopyErrorPermissionDenied,
|
|
67
|
+
CopyErrorReadOnly: () => CopyErrorReadOnly,
|
|
68
|
+
CopyErrorTooManyOpenFiles: () => CopyErrorTooManyOpenFiles,
|
|
69
|
+
EnsureDirectoryError: () => EnsureDirectoryError,
|
|
70
|
+
EnsureDirectoryErrorBusy: () => EnsureDirectoryErrorBusy,
|
|
71
|
+
EnsureDirectoryErrorInvalidArgument: () => EnsureDirectoryErrorInvalidArgument,
|
|
72
|
+
EnsureDirectoryErrorNoSpace: () => EnsureDirectoryErrorNoSpace,
|
|
73
|
+
EnsureDirectoryErrorNotDirectory: () => EnsureDirectoryErrorNotDirectory,
|
|
74
|
+
EnsureDirectoryErrorPermissionDenied: () => EnsureDirectoryErrorPermissionDenied,
|
|
75
|
+
EnsureDirectoryErrorReadOnly: () => EnsureDirectoryErrorReadOnly,
|
|
76
|
+
EnsureDirectoryErrorTooManyOpenFiles: () => EnsureDirectoryErrorTooManyOpenFiles,
|
|
77
|
+
EnsureFileError: () => EnsureFileError,
|
|
78
|
+
EnsureFileErrorBusy: () => EnsureFileErrorBusy,
|
|
79
|
+
EnsureFileErrorInvalidArgument: () => EnsureFileErrorInvalidArgument,
|
|
80
|
+
EnsureFileErrorIsDirectory: () => EnsureFileErrorIsDirectory,
|
|
81
|
+
EnsureFileErrorNoSpace: () => EnsureFileErrorNoSpace,
|
|
82
|
+
EnsureFileErrorNotDirectory: () => EnsureFileErrorNotDirectory,
|
|
83
|
+
EnsureFileErrorPermissionDenied: () => EnsureFileErrorPermissionDenied,
|
|
84
|
+
EnsureFileErrorReadOnly: () => EnsureFileErrorReadOnly,
|
|
85
|
+
EnsureFileErrorTooManyOpenFiles: () => EnsureFileErrorTooManyOpenFiles,
|
|
86
|
+
ExistsError: () => ExistsError,
|
|
87
|
+
ExistsErrorNotDirectory: () => ExistsErrorNotDirectory,
|
|
88
|
+
ExistsErrorNotFound: () => ExistsErrorNotFound,
|
|
89
|
+
ExistsErrorPermissionDenied: () => ExistsErrorPermissionDenied,
|
|
90
|
+
ExistsErrorTooManyOpenFiles: () => ExistsErrorTooManyOpenFiles,
|
|
91
|
+
LinkError: () => LinkError,
|
|
92
|
+
LinkErrorAlreadyExists: () => LinkErrorAlreadyExists,
|
|
93
|
+
LinkErrorBusy: () => LinkErrorBusy,
|
|
94
|
+
LinkErrorCrossDevice: () => LinkErrorCrossDevice,
|
|
95
|
+
LinkErrorInvalidArgument: () => LinkErrorInvalidArgument,
|
|
96
|
+
LinkErrorNoSpace: () => LinkErrorNoSpace,
|
|
97
|
+
LinkErrorNotDirectory: () => LinkErrorNotDirectory,
|
|
98
|
+
LinkErrorNotFound: () => LinkErrorNotFound,
|
|
99
|
+
LinkErrorPermissionDenied: () => LinkErrorPermissionDenied,
|
|
100
|
+
LinkErrorReadOnly: () => LinkErrorReadOnly,
|
|
101
|
+
LinkErrorTooManyOpenFiles: () => LinkErrorTooManyOpenFiles,
|
|
102
|
+
LinkStatError: () => LinkStatError,
|
|
103
|
+
LinkStatErrorBusy: () => LinkStatErrorBusy,
|
|
104
|
+
LinkStatErrorNotDirectory: () => LinkStatErrorNotDirectory,
|
|
105
|
+
LinkStatErrorNotFound: () => LinkStatErrorNotFound,
|
|
106
|
+
LinkStatErrorPermissionDenied: () => LinkStatErrorPermissionDenied,
|
|
107
|
+
LinkStatErrorTooManyOpenFiles: () => LinkStatErrorTooManyOpenFiles,
|
|
108
|
+
MakeDirectoryError: () => MakeDirectoryError,
|
|
109
|
+
MakeDirectoryErrorAlreadyExists: () => MakeDirectoryErrorAlreadyExists,
|
|
110
|
+
MakeDirectoryErrorBusy: () => MakeDirectoryErrorBusy,
|
|
111
|
+
MakeDirectoryErrorInvalidArgument: () => MakeDirectoryErrorInvalidArgument,
|
|
112
|
+
MakeDirectoryErrorNoSpace: () => MakeDirectoryErrorNoSpace,
|
|
113
|
+
MakeDirectoryErrorNotDirectory: () => MakeDirectoryErrorNotDirectory,
|
|
114
|
+
MakeDirectoryErrorNotFound: () => MakeDirectoryErrorNotFound,
|
|
115
|
+
MakeDirectoryErrorPermissionDenied: () => MakeDirectoryErrorPermissionDenied,
|
|
116
|
+
MakeDirectoryErrorReadOnly: () => MakeDirectoryErrorReadOnly,
|
|
117
|
+
MakeDirectoryErrorTooManyOpenFiles: () => MakeDirectoryErrorTooManyOpenFiles,
|
|
118
|
+
MakeTemporaryDirectoryError: () => MakeTemporaryDirectoryError,
|
|
119
|
+
MakeTemporaryDirectoryErrorInvalidArgument: () => MakeTemporaryDirectoryErrorInvalidArgument,
|
|
120
|
+
MakeTemporaryDirectoryErrorNoSpace: () => MakeTemporaryDirectoryErrorNoSpace,
|
|
121
|
+
MakeTemporaryDirectoryErrorNotDirectory: () => MakeTemporaryDirectoryErrorNotDirectory,
|
|
122
|
+
MakeTemporaryDirectoryErrorPermissionDenied: () => MakeTemporaryDirectoryErrorPermissionDenied,
|
|
123
|
+
MakeTemporaryDirectoryErrorReadOnly: () => MakeTemporaryDirectoryErrorReadOnly,
|
|
124
|
+
MakeTemporaryDirectoryErrorTooManyOpenFiles: () => MakeTemporaryDirectoryErrorTooManyOpenFiles,
|
|
125
|
+
MakeTemporaryFileError: () => MakeTemporaryFileError,
|
|
126
|
+
MakeTemporaryFileErrorAlreadyExists: () => MakeTemporaryFileErrorAlreadyExists,
|
|
127
|
+
MakeTemporaryFileErrorInvalidArgument: () => MakeTemporaryFileErrorInvalidArgument,
|
|
128
|
+
MakeTemporaryFileErrorNoSpace: () => MakeTemporaryFileErrorNoSpace,
|
|
129
|
+
MakeTemporaryFileErrorNotDirectory: () => MakeTemporaryFileErrorNotDirectory,
|
|
130
|
+
MakeTemporaryFileErrorPermissionDenied: () => MakeTemporaryFileErrorPermissionDenied,
|
|
131
|
+
MakeTemporaryFileErrorReadOnly: () => MakeTemporaryFileErrorReadOnly,
|
|
132
|
+
MakeTemporaryFileErrorTooManyOpenFiles: () => MakeTemporaryFileErrorTooManyOpenFiles,
|
|
133
|
+
MoveError: () => MoveError,
|
|
134
|
+
MoveErrorAlreadyExists: () => MoveErrorAlreadyExists,
|
|
135
|
+
MoveErrorBusy: () => MoveErrorBusy,
|
|
136
|
+
MoveErrorCrossDevice: () => MoveErrorCrossDevice,
|
|
137
|
+
MoveErrorDirectoryNotEmpty: () => MoveErrorDirectoryNotEmpty,
|
|
138
|
+
MoveErrorInvalidArgument: () => MoveErrorInvalidArgument,
|
|
139
|
+
MoveErrorIsDirectory: () => MoveErrorIsDirectory,
|
|
140
|
+
MoveErrorNotDirectory: () => MoveErrorNotDirectory,
|
|
141
|
+
MoveErrorNotFound: () => MoveErrorNotFound,
|
|
142
|
+
MoveErrorPermissionDenied: () => MoveErrorPermissionDenied,
|
|
143
|
+
MoveErrorReadOnly: () => MoveErrorReadOnly,
|
|
144
|
+
ReadDirectoryError: () => ReadDirectoryError,
|
|
145
|
+
ReadDirectoryErrorBusy: () => ReadDirectoryErrorBusy,
|
|
146
|
+
ReadDirectoryErrorNotDirectory: () => ReadDirectoryErrorNotDirectory,
|
|
147
|
+
ReadDirectoryErrorNotFound: () => ReadDirectoryErrorNotFound,
|
|
148
|
+
ReadDirectoryErrorPermissionDenied: () => ReadDirectoryErrorPermissionDenied,
|
|
149
|
+
ReadDirectoryErrorTooManyOpenFiles: () => ReadDirectoryErrorTooManyOpenFiles,
|
|
150
|
+
ReadFileError: () => ReadFileError,
|
|
151
|
+
ReadFileErrorBusy: () => ReadFileErrorBusy,
|
|
152
|
+
ReadFileErrorIsDirectory: () => ReadFileErrorIsDirectory,
|
|
153
|
+
ReadFileErrorNotDirectory: () => ReadFileErrorNotDirectory,
|
|
154
|
+
ReadFileErrorNotFound: () => ReadFileErrorNotFound,
|
|
155
|
+
ReadFileErrorPermissionDenied: () => ReadFileErrorPermissionDenied,
|
|
156
|
+
ReadFileErrorTooManyOpenFiles: () => ReadFileErrorTooManyOpenFiles,
|
|
157
|
+
ReadJsonFileError: () => ReadJsonFileError,
|
|
158
|
+
ReadJsonFileErrorBusy: () => ReadJsonFileErrorBusy,
|
|
159
|
+
ReadJsonFileErrorIsDirectory: () => ReadJsonFileErrorIsDirectory,
|
|
160
|
+
ReadJsonFileErrorNotDirectory: () => ReadJsonFileErrorNotDirectory,
|
|
161
|
+
ReadJsonFileErrorNotFound: () => ReadJsonFileErrorNotFound,
|
|
162
|
+
ReadJsonFileErrorPermissionDenied: () => ReadJsonFileErrorPermissionDenied,
|
|
163
|
+
ReadJsonFileErrorTooManyOpenFiles: () => ReadJsonFileErrorTooManyOpenFiles,
|
|
164
|
+
ReadLinkError: () => ReadLinkError,
|
|
165
|
+
ReadLinkErrorInvalidArgument: () => ReadLinkErrorInvalidArgument,
|
|
166
|
+
ReadLinkErrorNotDirectory: () => ReadLinkErrorNotDirectory,
|
|
167
|
+
ReadLinkErrorNotFound: () => ReadLinkErrorNotFound,
|
|
168
|
+
ReadLinkErrorPermissionDenied: () => ReadLinkErrorPermissionDenied,
|
|
169
|
+
ReadLinkErrorTooManyOpenFiles: () => ReadLinkErrorTooManyOpenFiles,
|
|
170
|
+
ReadTextFileError: () => ReadTextFileError,
|
|
171
|
+
ReadTextFileErrorBusy: () => ReadTextFileErrorBusy,
|
|
172
|
+
ReadTextFileErrorIsDirectory: () => ReadTextFileErrorIsDirectory,
|
|
173
|
+
ReadTextFileErrorNotDirectory: () => ReadTextFileErrorNotDirectory,
|
|
174
|
+
ReadTextFileErrorNotFound: () => ReadTextFileErrorNotFound,
|
|
175
|
+
ReadTextFileErrorPermissionDenied: () => ReadTextFileErrorPermissionDenied,
|
|
176
|
+
ReadTextFileErrorTooManyOpenFiles: () => ReadTextFileErrorTooManyOpenFiles,
|
|
177
|
+
RealPathError: () => RealPathError,
|
|
178
|
+
RealPathErrorNotDirectory: () => RealPathErrorNotDirectory,
|
|
179
|
+
RealPathErrorNotFound: () => RealPathErrorNotFound,
|
|
180
|
+
RealPathErrorPermissionDenied: () => RealPathErrorPermissionDenied,
|
|
181
|
+
RealPathErrorTooManyOpenFiles: () => RealPathErrorTooManyOpenFiles,
|
|
182
|
+
RelocateError: () => RelocateError,
|
|
183
|
+
RelocateErrorAlreadyExists: () => RelocateErrorAlreadyExists,
|
|
184
|
+
RelocateErrorBusy: () => RelocateErrorBusy,
|
|
185
|
+
RelocateErrorCrossDevice: () => RelocateErrorCrossDevice,
|
|
186
|
+
RelocateErrorDirectoryNotEmpty: () => RelocateErrorDirectoryNotEmpty,
|
|
187
|
+
RelocateErrorInvalidArgument: () => RelocateErrorInvalidArgument,
|
|
188
|
+
RelocateErrorIsDirectory: () => RelocateErrorIsDirectory,
|
|
189
|
+
RelocateErrorNotDirectory: () => RelocateErrorNotDirectory,
|
|
190
|
+
RelocateErrorNotFound: () => RelocateErrorNotFound,
|
|
191
|
+
RelocateErrorPermissionDenied: () => RelocateErrorPermissionDenied,
|
|
192
|
+
RelocateErrorReadOnly: () => RelocateErrorReadOnly,
|
|
193
|
+
RemoveError: () => RemoveError,
|
|
194
|
+
RemoveErrorBusy: () => RemoveErrorBusy,
|
|
195
|
+
RemoveErrorDirectoryNotEmpty: () => RemoveErrorDirectoryNotEmpty,
|
|
196
|
+
RemoveErrorInvalidArgument: () => RemoveErrorInvalidArgument,
|
|
197
|
+
RemoveErrorIsDirectory: () => RemoveErrorIsDirectory,
|
|
198
|
+
RemoveErrorNotDirectory: () => RemoveErrorNotDirectory,
|
|
199
|
+
RemoveErrorNotFound: () => RemoveErrorNotFound,
|
|
200
|
+
RemoveErrorPermissionDenied: () => RemoveErrorPermissionDenied,
|
|
201
|
+
RemoveErrorReadOnly: () => RemoveErrorReadOnly,
|
|
202
|
+
RenameError: () => RenameError,
|
|
203
|
+
RenameErrorAlreadyExists: () => RenameErrorAlreadyExists,
|
|
204
|
+
RenameErrorBusy: () => RenameErrorBusy,
|
|
205
|
+
RenameErrorCrossDevice: () => RenameErrorCrossDevice,
|
|
206
|
+
RenameErrorDirectoryNotEmpty: () => RenameErrorDirectoryNotEmpty,
|
|
207
|
+
RenameErrorInvalidArgument: () => RenameErrorInvalidArgument,
|
|
208
|
+
RenameErrorIsDirectory: () => RenameErrorIsDirectory,
|
|
209
|
+
RenameErrorNotDirectory: () => RenameErrorNotDirectory,
|
|
210
|
+
RenameErrorNotFound: () => RenameErrorNotFound,
|
|
211
|
+
RenameErrorPermissionDenied: () => RenameErrorPermissionDenied,
|
|
212
|
+
RenameErrorReadOnly: () => RenameErrorReadOnly,
|
|
213
|
+
SetModeError: () => SetModeError,
|
|
214
|
+
SetModeErrorInvalidArgument: () => SetModeErrorInvalidArgument,
|
|
215
|
+
SetModeErrorNotDirectory: () => SetModeErrorNotDirectory,
|
|
216
|
+
SetModeErrorNotFound: () => SetModeErrorNotFound,
|
|
217
|
+
SetModeErrorPermissionDenied: () => SetModeErrorPermissionDenied,
|
|
218
|
+
SetModeErrorReadOnly: () => SetModeErrorReadOnly,
|
|
219
|
+
SetOwnerError: () => SetOwnerError,
|
|
220
|
+
SetOwnerErrorInvalidArgument: () => SetOwnerErrorInvalidArgument,
|
|
221
|
+
SetOwnerErrorNotDirectory: () => SetOwnerErrorNotDirectory,
|
|
222
|
+
SetOwnerErrorNotFound: () => SetOwnerErrorNotFound,
|
|
223
|
+
SetOwnerErrorPermissionDenied: () => SetOwnerErrorPermissionDenied,
|
|
224
|
+
SetOwnerErrorReadOnly: () => SetOwnerErrorReadOnly,
|
|
225
|
+
SetTimeError: () => SetTimeError,
|
|
226
|
+
SetTimeErrorInvalidArgument: () => SetTimeErrorInvalidArgument,
|
|
227
|
+
SetTimeErrorNotDirectory: () => SetTimeErrorNotDirectory,
|
|
228
|
+
SetTimeErrorNotFound: () => SetTimeErrorNotFound,
|
|
229
|
+
SetTimeErrorPermissionDenied: () => SetTimeErrorPermissionDenied,
|
|
230
|
+
SetTimeErrorReadOnly: () => SetTimeErrorReadOnly,
|
|
231
|
+
StatError: () => StatError,
|
|
232
|
+
StatErrorBusy: () => StatErrorBusy,
|
|
233
|
+
StatErrorNotDirectory: () => StatErrorNotDirectory,
|
|
234
|
+
StatErrorNotFound: () => StatErrorNotFound,
|
|
235
|
+
StatErrorPermissionDenied: () => StatErrorPermissionDenied,
|
|
236
|
+
StatErrorTooManyOpenFiles: () => StatErrorTooManyOpenFiles,
|
|
237
|
+
SymlinkError: () => SymlinkError,
|
|
238
|
+
SymlinkErrorAlreadyExists: () => SymlinkErrorAlreadyExists,
|
|
239
|
+
SymlinkErrorBusy: () => SymlinkErrorBusy,
|
|
240
|
+
SymlinkErrorInvalidArgument: () => SymlinkErrorInvalidArgument,
|
|
241
|
+
SymlinkErrorNotDirectory: () => SymlinkErrorNotDirectory,
|
|
242
|
+
SymlinkErrorNotFound: () => SymlinkErrorNotFound,
|
|
243
|
+
SymlinkErrorPermissionDenied: () => SymlinkErrorPermissionDenied,
|
|
244
|
+
SymlinkErrorReadOnly: () => SymlinkErrorReadOnly,
|
|
245
|
+
SymlinkErrorTooManyOpenFiles: () => SymlinkErrorTooManyOpenFiles,
|
|
246
|
+
TruncateError: () => TruncateError,
|
|
247
|
+
TruncateErrorBusy: () => TruncateErrorBusy,
|
|
248
|
+
TruncateErrorInvalidArgument: () => TruncateErrorInvalidArgument,
|
|
249
|
+
TruncateErrorIsDirectory: () => TruncateErrorIsDirectory,
|
|
250
|
+
TruncateErrorNoSpace: () => TruncateErrorNoSpace,
|
|
251
|
+
TruncateErrorNotDirectory: () => TruncateErrorNotDirectory,
|
|
252
|
+
TruncateErrorNotFound: () => TruncateErrorNotFound,
|
|
253
|
+
TruncateErrorPermissionDenied: () => TruncateErrorPermissionDenied,
|
|
254
|
+
TruncateErrorReadOnly: () => TruncateErrorReadOnly,
|
|
255
|
+
TruncateErrorTooManyOpenFiles: () => TruncateErrorTooManyOpenFiles,
|
|
256
|
+
WalkDirectoryError: () => WalkDirectoryError,
|
|
257
|
+
WalkDirectoryErrorBusy: () => WalkDirectoryErrorBusy,
|
|
258
|
+
WalkDirectoryErrorNotDirectory: () => WalkDirectoryErrorNotDirectory,
|
|
259
|
+
WalkDirectoryErrorNotFound: () => WalkDirectoryErrorNotFound,
|
|
260
|
+
WalkDirectoryErrorPermissionDenied: () => WalkDirectoryErrorPermissionDenied,
|
|
261
|
+
WalkDirectoryErrorTooManyOpenFiles: () => WalkDirectoryErrorTooManyOpenFiles,
|
|
262
|
+
WriteFileError: () => WriteFileError,
|
|
263
|
+
WriteFileErrorBusy: () => WriteFileErrorBusy,
|
|
264
|
+
WriteFileErrorInvalidArgument: () => WriteFileErrorInvalidArgument,
|
|
265
|
+
WriteFileErrorIsDirectory: () => WriteFileErrorIsDirectory,
|
|
266
|
+
WriteFileErrorNoSpace: () => WriteFileErrorNoSpace,
|
|
267
|
+
WriteFileErrorNotDirectory: () => WriteFileErrorNotDirectory,
|
|
268
|
+
WriteFileErrorNotFound: () => WriteFileErrorNotFound,
|
|
269
|
+
WriteFileErrorPermissionDenied: () => WriteFileErrorPermissionDenied,
|
|
270
|
+
WriteFileErrorReadOnly: () => WriteFileErrorReadOnly,
|
|
271
|
+
WriteFileErrorTooManyOpenFiles: () => WriteFileErrorTooManyOpenFiles,
|
|
272
|
+
WriteJsonFileError: () => WriteJsonFileError,
|
|
273
|
+
WriteJsonFileErrorBusy: () => WriteJsonFileErrorBusy,
|
|
274
|
+
WriteJsonFileErrorInvalidArgument: () => WriteJsonFileErrorInvalidArgument,
|
|
275
|
+
WriteJsonFileErrorIsDirectory: () => WriteJsonFileErrorIsDirectory,
|
|
276
|
+
WriteJsonFileErrorNoSpace: () => WriteJsonFileErrorNoSpace,
|
|
277
|
+
WriteJsonFileErrorNotDirectory: () => WriteJsonFileErrorNotDirectory,
|
|
278
|
+
WriteJsonFileErrorNotFound: () => WriteJsonFileErrorNotFound,
|
|
279
|
+
WriteJsonFileErrorPermissionDenied: () => WriteJsonFileErrorPermissionDenied,
|
|
280
|
+
WriteJsonFileErrorReadOnly: () => WriteJsonFileErrorReadOnly,
|
|
281
|
+
WriteJsonFileErrorTooManyOpenFiles: () => WriteJsonFileErrorTooManyOpenFiles,
|
|
282
|
+
WriteTextFileError: () => WriteTextFileError,
|
|
283
|
+
WriteTextFileErrorBusy: () => WriteTextFileErrorBusy,
|
|
284
|
+
WriteTextFileErrorInvalidArgument: () => WriteTextFileErrorInvalidArgument,
|
|
285
|
+
WriteTextFileErrorIsDirectory: () => WriteTextFileErrorIsDirectory,
|
|
286
|
+
WriteTextFileErrorNoSpace: () => WriteTextFileErrorNoSpace,
|
|
287
|
+
WriteTextFileErrorNotDirectory: () => WriteTextFileErrorNotDirectory,
|
|
288
|
+
WriteTextFileErrorNotFound: () => WriteTextFileErrorNotFound,
|
|
289
|
+
WriteTextFileErrorPermissionDenied: () => WriteTextFileErrorPermissionDenied,
|
|
290
|
+
WriteTextFileErrorReadOnly: () => WriteTextFileErrorReadOnly,
|
|
291
|
+
WriteTextFileErrorTooManyOpenFiles: () => WriteTextFileErrorTooManyOpenFiles,
|
|
39
292
|
appendFile: () => appendFile,
|
|
40
293
|
appendTextFile: () => appendTextFile,
|
|
41
294
|
copy: () => copy,
|
|
@@ -79,4 +332,4 @@ var file_exports = /* @__PURE__ */ __exportAll({
|
|
|
79
332
|
writeTextFile: () => writeTextFile
|
|
80
333
|
});
|
|
81
334
|
//#endregion
|
|
82
|
-
export { appendFile, appendTextFile, copy, createEntryInterface, createFileInterface, createFolderInterface, createUnknownEntryInterface, ensureDirectory, ensureFile, exists, file_exports, isFileInterface, isFileInterfaceFromUnknown, isFolderInterface, isFolderInterfaceFromUnknown, isUnknownEntryInterface, isUnknownEntryInterfaceFromUnknown, link, linkStat, makeDirectory, makeTemporaryDirectory, makeTemporaryFile, move, readDirectory, readFile, readJsonFile, readLink, readTextFile, realPath, relocate, remove, rename, setMode, setOwner, setTime, stat, symlink, truncate, walkDirectory, writeFile, writeJsonFile, writeTextFile };
|
|
335
|
+
export { AppendFileError, AppendFileErrorBusy, AppendFileErrorInvalidArgument, AppendFileErrorIsDirectory, AppendFileErrorNoSpace, AppendFileErrorNotDirectory, AppendFileErrorNotFound, AppendFileErrorPermissionDenied, AppendFileErrorReadOnly, AppendFileErrorTooManyOpenFiles, AppendTextFileError, AppendTextFileErrorBusy, AppendTextFileErrorInvalidArgument, AppendTextFileErrorIsDirectory, AppendTextFileErrorNoSpace, AppendTextFileErrorNotDirectory, AppendTextFileErrorNotFound, AppendTextFileErrorPermissionDenied, AppendTextFileErrorReadOnly, AppendTextFileErrorTooManyOpenFiles, CopyError, CopyErrorAlreadyExists, CopyErrorBusy, CopyErrorInvalidArgument, CopyErrorNoSpace, CopyErrorNotDirectory, CopyErrorNotFound, CopyErrorPermissionDenied, CopyErrorReadOnly, CopyErrorTooManyOpenFiles, EnsureDirectoryError, EnsureDirectoryErrorBusy, EnsureDirectoryErrorInvalidArgument, EnsureDirectoryErrorNoSpace, EnsureDirectoryErrorNotDirectory, EnsureDirectoryErrorPermissionDenied, EnsureDirectoryErrorReadOnly, EnsureDirectoryErrorTooManyOpenFiles, EnsureFileError, EnsureFileErrorBusy, EnsureFileErrorInvalidArgument, EnsureFileErrorIsDirectory, EnsureFileErrorNoSpace, EnsureFileErrorNotDirectory, EnsureFileErrorPermissionDenied, EnsureFileErrorReadOnly, EnsureFileErrorTooManyOpenFiles, ExistsError, ExistsErrorNotDirectory, ExistsErrorNotFound, ExistsErrorPermissionDenied, ExistsErrorTooManyOpenFiles, LinkError, LinkErrorAlreadyExists, LinkErrorBusy, LinkErrorCrossDevice, LinkErrorInvalidArgument, LinkErrorNoSpace, LinkErrorNotDirectory, LinkErrorNotFound, LinkErrorPermissionDenied, LinkErrorReadOnly, LinkErrorTooManyOpenFiles, LinkStatError, LinkStatErrorBusy, LinkStatErrorNotDirectory, LinkStatErrorNotFound, LinkStatErrorPermissionDenied, LinkStatErrorTooManyOpenFiles, MakeDirectoryError, MakeDirectoryErrorAlreadyExists, MakeDirectoryErrorBusy, MakeDirectoryErrorInvalidArgument, MakeDirectoryErrorNoSpace, MakeDirectoryErrorNotDirectory, MakeDirectoryErrorNotFound, MakeDirectoryErrorPermissionDenied, MakeDirectoryErrorReadOnly, MakeDirectoryErrorTooManyOpenFiles, MakeTemporaryDirectoryError, MakeTemporaryDirectoryErrorInvalidArgument, MakeTemporaryDirectoryErrorNoSpace, MakeTemporaryDirectoryErrorNotDirectory, MakeTemporaryDirectoryErrorPermissionDenied, MakeTemporaryDirectoryErrorReadOnly, MakeTemporaryDirectoryErrorTooManyOpenFiles, MakeTemporaryFileError, MakeTemporaryFileErrorAlreadyExists, MakeTemporaryFileErrorInvalidArgument, MakeTemporaryFileErrorNoSpace, MakeTemporaryFileErrorNotDirectory, MakeTemporaryFileErrorPermissionDenied, MakeTemporaryFileErrorReadOnly, MakeTemporaryFileErrorTooManyOpenFiles, MoveError, MoveErrorAlreadyExists, MoveErrorBusy, MoveErrorCrossDevice, MoveErrorDirectoryNotEmpty, MoveErrorInvalidArgument, MoveErrorIsDirectory, MoveErrorNotDirectory, MoveErrorNotFound, MoveErrorPermissionDenied, MoveErrorReadOnly, ReadDirectoryError, ReadDirectoryErrorBusy, ReadDirectoryErrorNotDirectory, ReadDirectoryErrorNotFound, ReadDirectoryErrorPermissionDenied, ReadDirectoryErrorTooManyOpenFiles, ReadFileError, ReadFileErrorBusy, ReadFileErrorIsDirectory, ReadFileErrorNotDirectory, ReadFileErrorNotFound, ReadFileErrorPermissionDenied, ReadFileErrorTooManyOpenFiles, ReadJsonFileError, ReadJsonFileErrorBusy, ReadJsonFileErrorIsDirectory, ReadJsonFileErrorNotDirectory, ReadJsonFileErrorNotFound, ReadJsonFileErrorPermissionDenied, ReadJsonFileErrorTooManyOpenFiles, ReadLinkError, ReadLinkErrorInvalidArgument, ReadLinkErrorNotDirectory, ReadLinkErrorNotFound, ReadLinkErrorPermissionDenied, ReadLinkErrorTooManyOpenFiles, ReadTextFileError, ReadTextFileErrorBusy, ReadTextFileErrorIsDirectory, ReadTextFileErrorNotDirectory, ReadTextFileErrorNotFound, ReadTextFileErrorPermissionDenied, ReadTextFileErrorTooManyOpenFiles, RealPathError, RealPathErrorNotDirectory, RealPathErrorNotFound, RealPathErrorPermissionDenied, RealPathErrorTooManyOpenFiles, RelocateError, RelocateErrorAlreadyExists, RelocateErrorBusy, RelocateErrorCrossDevice, RelocateErrorDirectoryNotEmpty, RelocateErrorInvalidArgument, RelocateErrorIsDirectory, RelocateErrorNotDirectory, RelocateErrorNotFound, RelocateErrorPermissionDenied, RelocateErrorReadOnly, RemoveError, RemoveErrorBusy, RemoveErrorDirectoryNotEmpty, RemoveErrorInvalidArgument, RemoveErrorIsDirectory, RemoveErrorNotDirectory, RemoveErrorNotFound, RemoveErrorPermissionDenied, RemoveErrorReadOnly, RenameError, RenameErrorAlreadyExists, RenameErrorBusy, RenameErrorCrossDevice, RenameErrorDirectoryNotEmpty, RenameErrorInvalidArgument, RenameErrorIsDirectory, RenameErrorNotDirectory, RenameErrorNotFound, RenameErrorPermissionDenied, RenameErrorReadOnly, SetModeError, SetModeErrorInvalidArgument, SetModeErrorNotDirectory, SetModeErrorNotFound, SetModeErrorPermissionDenied, SetModeErrorReadOnly, SetOwnerError, SetOwnerErrorInvalidArgument, SetOwnerErrorNotDirectory, SetOwnerErrorNotFound, SetOwnerErrorPermissionDenied, SetOwnerErrorReadOnly, SetTimeError, SetTimeErrorInvalidArgument, SetTimeErrorNotDirectory, SetTimeErrorNotFound, SetTimeErrorPermissionDenied, SetTimeErrorReadOnly, StatError, StatErrorBusy, StatErrorNotDirectory, StatErrorNotFound, StatErrorPermissionDenied, StatErrorTooManyOpenFiles, SymlinkError, SymlinkErrorAlreadyExists, SymlinkErrorBusy, SymlinkErrorInvalidArgument, SymlinkErrorNotDirectory, SymlinkErrorNotFound, SymlinkErrorPermissionDenied, SymlinkErrorReadOnly, SymlinkErrorTooManyOpenFiles, TruncateError, TruncateErrorBusy, TruncateErrorInvalidArgument, TruncateErrorIsDirectory, TruncateErrorNoSpace, TruncateErrorNotDirectory, TruncateErrorNotFound, TruncateErrorPermissionDenied, TruncateErrorReadOnly, TruncateErrorTooManyOpenFiles, WalkDirectoryError, WalkDirectoryErrorBusy, WalkDirectoryErrorNotDirectory, WalkDirectoryErrorNotFound, WalkDirectoryErrorPermissionDenied, WalkDirectoryErrorTooManyOpenFiles, WriteFileError, WriteFileErrorBusy, WriteFileErrorInvalidArgument, WriteFileErrorIsDirectory, WriteFileErrorNoSpace, WriteFileErrorNotDirectory, WriteFileErrorNotFound, WriteFileErrorPermissionDenied, WriteFileErrorReadOnly, WriteFileErrorTooManyOpenFiles, WriteJsonFileError, WriteJsonFileErrorBusy, WriteJsonFileErrorInvalidArgument, WriteJsonFileErrorIsDirectory, WriteJsonFileErrorNoSpace, WriteJsonFileErrorNotDirectory, WriteJsonFileErrorNotFound, WriteJsonFileErrorPermissionDenied, WriteJsonFileErrorReadOnly, WriteJsonFileErrorTooManyOpenFiles, WriteTextFileError, WriteTextFileErrorBusy, WriteTextFileErrorInvalidArgument, WriteTextFileErrorIsDirectory, WriteTextFileErrorNoSpace, WriteTextFileErrorNotDirectory, WriteTextFileErrorNotFound, WriteTextFileErrorPermissionDenied, WriteTextFileErrorReadOnly, WriteTextFileErrorTooManyOpenFiles, appendFile, appendTextFile, copy, createEntryInterface, createFileInterface, createFolderInterface, createUnknownEntryInterface, ensureDirectory, ensureFile, exists, file_exports, isFileInterface, isFileInterfaceFromUnknown, isFolderInterface, isFolderInterfaceFromUnknown, isUnknownEntryInterface, isUnknownEntryInterfaceFromUnknown, link, linkStat, makeDirectory, makeTemporaryDirectory, makeTemporaryFile, move, readDirectory, readFile, readJsonFile, readLink, readTextFile, realPath, relocate, remove, rename, setMode, setOwner, setTime, stat, symlink, truncate, walkDirectory, writeFile, writeJsonFile, writeTextFile };
|
package/dist/file/link.cjs
CHANGED
|
@@ -56,4 +56,15 @@ function link(...args) {
|
|
|
56
56
|
return linkImplementation(...args);
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
|
+
exports.LinkError = LinkError;
|
|
60
|
+
exports.LinkErrorAlreadyExists = LinkErrorAlreadyExists;
|
|
61
|
+
exports.LinkErrorBusy = LinkErrorBusy;
|
|
62
|
+
exports.LinkErrorCrossDevice = LinkErrorCrossDevice;
|
|
63
|
+
exports.LinkErrorInvalidArgument = LinkErrorInvalidArgument;
|
|
64
|
+
exports.LinkErrorNoSpace = LinkErrorNoSpace;
|
|
65
|
+
exports.LinkErrorNotDirectory = LinkErrorNotDirectory;
|
|
66
|
+
exports.LinkErrorNotFound = LinkErrorNotFound;
|
|
67
|
+
exports.LinkErrorPermissionDenied = LinkErrorPermissionDenied;
|
|
68
|
+
exports.LinkErrorReadOnly = LinkErrorReadOnly;
|
|
69
|
+
exports.LinkErrorTooManyOpenFiles = LinkErrorTooManyOpenFiles;
|
|
59
70
|
exports.link = link;
|
package/dist/file/link.d.ts
CHANGED
|
@@ -2,45 +2,45 @@ import * as DEither from "@duplojs/lang/either";
|
|
|
2
2
|
import type * as DPath from "@duplojs/lang/path";
|
|
3
3
|
import * as DCommon from "@duplojs/lang/common";
|
|
4
4
|
declare const LinkErrorNotFound_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-not-found", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-not-found", unknown>>, unknown>;
|
|
5
|
-
declare class LinkErrorNotFound extends LinkErrorNotFound_base {
|
|
5
|
+
export declare class LinkErrorNotFound extends LinkErrorNotFound_base {
|
|
6
6
|
}
|
|
7
7
|
declare const LinkErrorPermissionDenied_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-permission-denied", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-permission-denied", unknown>>, unknown>;
|
|
8
|
-
declare class LinkErrorPermissionDenied extends LinkErrorPermissionDenied_base {
|
|
8
|
+
export declare class LinkErrorPermissionDenied extends LinkErrorPermissionDenied_base {
|
|
9
9
|
}
|
|
10
10
|
declare const LinkErrorAlreadyExists_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-already-exists", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-already-exists", unknown>>, unknown>;
|
|
11
|
-
declare class LinkErrorAlreadyExists extends LinkErrorAlreadyExists_base {
|
|
11
|
+
export declare class LinkErrorAlreadyExists extends LinkErrorAlreadyExists_base {
|
|
12
12
|
}
|
|
13
13
|
declare const LinkErrorNotDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-not-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-not-directory", unknown>>, unknown>;
|
|
14
|
-
declare class LinkErrorNotDirectory extends LinkErrorNotDirectory_base {
|
|
14
|
+
export declare class LinkErrorNotDirectory extends LinkErrorNotDirectory_base {
|
|
15
15
|
}
|
|
16
16
|
declare const LinkErrorNoSpace_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-no-space", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-no-space", unknown>>, unknown>;
|
|
17
|
-
declare class LinkErrorNoSpace extends LinkErrorNoSpace_base {
|
|
17
|
+
export declare class LinkErrorNoSpace extends LinkErrorNoSpace_base {
|
|
18
18
|
}
|
|
19
19
|
declare const LinkErrorReadOnly_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-read-only", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-read-only", unknown>>, unknown>;
|
|
20
|
-
declare class LinkErrorReadOnly extends LinkErrorReadOnly_base {
|
|
20
|
+
export declare class LinkErrorReadOnly extends LinkErrorReadOnly_base {
|
|
21
21
|
}
|
|
22
22
|
declare const LinkErrorInvalidArgument_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-invalid-argument", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-invalid-argument", unknown>>, unknown>;
|
|
23
|
-
declare class LinkErrorInvalidArgument extends LinkErrorInvalidArgument_base {
|
|
23
|
+
export declare class LinkErrorInvalidArgument extends LinkErrorInvalidArgument_base {
|
|
24
24
|
}
|
|
25
25
|
declare const LinkErrorTooManyOpenFiles_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-too-many-open-files", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-too-many-open-files", unknown>>, unknown>;
|
|
26
|
-
declare class LinkErrorTooManyOpenFiles extends LinkErrorTooManyOpenFiles_base {
|
|
26
|
+
export declare class LinkErrorTooManyOpenFiles extends LinkErrorTooManyOpenFiles_base {
|
|
27
27
|
}
|
|
28
28
|
declare const LinkErrorBusy_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-busy", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-busy", unknown>>, unknown>;
|
|
29
|
-
declare class LinkErrorBusy extends LinkErrorBusy_base {
|
|
29
|
+
export declare class LinkErrorBusy extends LinkErrorBusy_base {
|
|
30
30
|
}
|
|
31
31
|
declare const LinkErrorCrossDevice_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-cross-device", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-cross-device", unknown>>, unknown>;
|
|
32
|
-
declare class LinkErrorCrossDevice extends LinkErrorCrossDevice_base {
|
|
32
|
+
export declare class LinkErrorCrossDevice extends LinkErrorCrossDevice_base {
|
|
33
33
|
}
|
|
34
34
|
declare const LinkError_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-error", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-error", unknown>>, unknown>;
|
|
35
|
-
declare class LinkError extends LinkError_base {
|
|
35
|
+
export declare class LinkError extends LinkError_base {
|
|
36
36
|
}
|
|
37
37
|
export type LinkErrors = (LinkErrorNotFound | LinkErrorPermissionDenied | LinkErrorAlreadyExists | LinkErrorNotDirectory | LinkErrorNoSpace | LinkErrorReadOnly | LinkErrorInvalidArgument | LinkErrorTooManyOpenFiles | LinkErrorBusy | LinkErrorCrossDevice | LinkError);
|
|
38
38
|
export type LinkResult = (DEither.Right<"file-system-link", void> | DEither.Left<"file-system-link-error", LinkErrors>);
|
|
39
39
|
declare module '../implementor' {
|
|
40
40
|
interface ServerFunction {
|
|
41
|
-
link(existingPath:
|
|
41
|
+
link(existingPath: DPath.AnyPath, newPath: DPath.AnyPath): Promise<LinkResult>;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
export declare function link(newPath:
|
|
45
|
-
export declare function link(existingPath:
|
|
44
|
+
export declare function link(newPath: DPath.AnyPath): (existingPath: DPath.AnyPath) => Promise<LinkResult>;
|
|
45
|
+
export declare function link(existingPath: DPath.AnyPath, newPath: DPath.AnyPath): Promise<LinkResult>;
|
|
46
46
|
export {};
|
package/dist/file/link.mjs
CHANGED
|
@@ -53,4 +53,4 @@ function link(...args) {
|
|
|
53
53
|
return linkImplementation(...args);
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
|
-
export { link };
|
|
56
|
+
export { LinkError, LinkErrorAlreadyExists, LinkErrorBusy, LinkErrorCrossDevice, LinkErrorInvalidArgument, LinkErrorNoSpace, LinkErrorNotDirectory, LinkErrorNotFound, LinkErrorPermissionDenied, LinkErrorReadOnly, LinkErrorTooManyOpenFiles, link };
|
package/dist/file/linkStat.cjs
CHANGED
|
@@ -89,4 +89,10 @@ const linkStat = require_implementor.implementFunction("linkStat", {
|
|
|
89
89
|
DENO: (path) => Deno.lstat(path).then(_duplojs_lang_common.innerPipe(createStatInfoWithDeno, (value) => _duplojs_lang_either.right("file-system-link-stat", value))).catch(handleDenoLinkStatError)
|
|
90
90
|
});
|
|
91
91
|
//#endregion
|
|
92
|
+
exports.LinkStatError = LinkStatError;
|
|
93
|
+
exports.LinkStatErrorBusy = LinkStatErrorBusy;
|
|
94
|
+
exports.LinkStatErrorNotDirectory = LinkStatErrorNotDirectory;
|
|
95
|
+
exports.LinkStatErrorNotFound = LinkStatErrorNotFound;
|
|
96
|
+
exports.LinkStatErrorPermissionDenied = LinkStatErrorPermissionDenied;
|
|
97
|
+
exports.LinkStatErrorTooManyOpenFiles = LinkStatErrorTooManyOpenFiles;
|
|
92
98
|
exports.linkStat = linkStat;
|
package/dist/file/linkStat.d.ts
CHANGED
|
@@ -3,29 +3,29 @@ import * as DCommon from "@duplojs/lang/common";
|
|
|
3
3
|
import type * as DPath from "@duplojs/lang/path";
|
|
4
4
|
import * as DEither from "@duplojs/lang/either";
|
|
5
5
|
declare const LinkStatErrorNotFound_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-stat-not-found", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-stat-not-found", unknown>>, unknown>;
|
|
6
|
-
declare class LinkStatErrorNotFound extends LinkStatErrorNotFound_base {
|
|
6
|
+
export declare class LinkStatErrorNotFound extends LinkStatErrorNotFound_base {
|
|
7
7
|
}
|
|
8
8
|
declare const LinkStatErrorPermissionDenied_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-stat-permission-denied", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-stat-permission-denied", unknown>>, unknown>;
|
|
9
|
-
declare class LinkStatErrorPermissionDenied extends LinkStatErrorPermissionDenied_base {
|
|
9
|
+
export declare class LinkStatErrorPermissionDenied extends LinkStatErrorPermissionDenied_base {
|
|
10
10
|
}
|
|
11
11
|
declare const LinkStatErrorNotDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-stat-not-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-stat-not-directory", unknown>>, unknown>;
|
|
12
|
-
declare class LinkStatErrorNotDirectory extends LinkStatErrorNotDirectory_base {
|
|
12
|
+
export declare class LinkStatErrorNotDirectory extends LinkStatErrorNotDirectory_base {
|
|
13
13
|
}
|
|
14
14
|
declare const LinkStatErrorTooManyOpenFiles_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-stat-too-many-open-files", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-stat-too-many-open-files", unknown>>, unknown>;
|
|
15
|
-
declare class LinkStatErrorTooManyOpenFiles extends LinkStatErrorTooManyOpenFiles_base {
|
|
15
|
+
export declare class LinkStatErrorTooManyOpenFiles extends LinkStatErrorTooManyOpenFiles_base {
|
|
16
16
|
}
|
|
17
17
|
declare const LinkStatErrorBusy_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-stat-busy", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-stat-busy", unknown>>, unknown>;
|
|
18
|
-
declare class LinkStatErrorBusy extends LinkStatErrorBusy_base {
|
|
18
|
+
export declare class LinkStatErrorBusy extends LinkStatErrorBusy_base {
|
|
19
19
|
}
|
|
20
20
|
declare const LinkStatError_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-link-stat-error", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-link-stat-error", unknown>>, unknown>;
|
|
21
|
-
declare class LinkStatError extends LinkStatError_base {
|
|
21
|
+
export declare class LinkStatError extends LinkStatError_base {
|
|
22
22
|
}
|
|
23
23
|
export type LinkStatErrors = (LinkStatErrorNotFound | LinkStatErrorPermissionDenied | LinkStatErrorNotDirectory | LinkStatErrorTooManyOpenFiles | LinkStatErrorBusy | LinkStatError);
|
|
24
24
|
export type LinkStatResult = (DEither.Right<"file-system-link-stat", StatInfo> | DEither.Left<"file-system-link-stat-error", LinkStatErrors>);
|
|
25
25
|
declare module '../implementor' {
|
|
26
26
|
interface ServerFunction {
|
|
27
|
-
linkStat(path:
|
|
27
|
+
linkStat(path: DPath.AnyPath): Promise<LinkStatResult>;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
export declare const linkStat: (path:
|
|
30
|
+
export declare const linkStat: (path: DPath.AnyPath) => Promise<LinkStatResult>;
|
|
31
31
|
export {};
|
package/dist/file/linkStat.mjs
CHANGED
|
@@ -85,4 +85,4 @@ const linkStat = implementFunction("linkStat", {
|
|
|
85
85
|
DENO: (path) => Deno.lstat(path).then(DCommon.innerPipe(createStatInfoWithDeno, (value) => DEither.right("file-system-link-stat", value))).catch(handleDenoLinkStatError)
|
|
86
86
|
});
|
|
87
87
|
//#endregion
|
|
88
|
-
export { linkStat };
|
|
88
|
+
export { LinkStatError, LinkStatErrorBusy, LinkStatErrorNotDirectory, LinkStatErrorNotFound, LinkStatErrorPermissionDenied, LinkStatErrorTooManyOpenFiles, linkStat };
|
|
@@ -47,4 +47,14 @@ const makeDirectory = require_implementor.implementFunction("makeDirectory", {
|
|
|
47
47
|
DENO: (path, params) => Deno.mkdir(path, { recursive: params?.recursive }).then(() => _duplojs_lang_either.right("file-system-make-directory")).catch(handleDenoMakeDirectoryError)
|
|
48
48
|
});
|
|
49
49
|
//#endregion
|
|
50
|
+
exports.MakeDirectoryError = MakeDirectoryError;
|
|
51
|
+
exports.MakeDirectoryErrorAlreadyExists = MakeDirectoryErrorAlreadyExists;
|
|
52
|
+
exports.MakeDirectoryErrorBusy = MakeDirectoryErrorBusy;
|
|
53
|
+
exports.MakeDirectoryErrorInvalidArgument = MakeDirectoryErrorInvalidArgument;
|
|
54
|
+
exports.MakeDirectoryErrorNoSpace = MakeDirectoryErrorNoSpace;
|
|
55
|
+
exports.MakeDirectoryErrorNotDirectory = MakeDirectoryErrorNotDirectory;
|
|
56
|
+
exports.MakeDirectoryErrorNotFound = MakeDirectoryErrorNotFound;
|
|
57
|
+
exports.MakeDirectoryErrorPermissionDenied = MakeDirectoryErrorPermissionDenied;
|
|
58
|
+
exports.MakeDirectoryErrorReadOnly = MakeDirectoryErrorReadOnly;
|
|
59
|
+
exports.MakeDirectoryErrorTooManyOpenFiles = MakeDirectoryErrorTooManyOpenFiles;
|
|
50
60
|
exports.makeDirectory = makeDirectory;
|
|
@@ -5,41 +5,41 @@ interface MakeDirectoryParams {
|
|
|
5
5
|
recursive?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare const MakeDirectoryErrorNotFound_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-directory-not-found", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-directory-not-found", unknown>>, unknown>;
|
|
8
|
-
declare class MakeDirectoryErrorNotFound extends MakeDirectoryErrorNotFound_base {
|
|
8
|
+
export declare class MakeDirectoryErrorNotFound extends MakeDirectoryErrorNotFound_base {
|
|
9
9
|
}
|
|
10
10
|
declare const MakeDirectoryErrorPermissionDenied_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-directory-permission-denied", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-directory-permission-denied", unknown>>, unknown>;
|
|
11
|
-
declare class MakeDirectoryErrorPermissionDenied extends MakeDirectoryErrorPermissionDenied_base {
|
|
11
|
+
export declare class MakeDirectoryErrorPermissionDenied extends MakeDirectoryErrorPermissionDenied_base {
|
|
12
12
|
}
|
|
13
13
|
declare const MakeDirectoryErrorAlreadyExists_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-directory-already-exists", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-directory-already-exists", unknown>>, unknown>;
|
|
14
|
-
declare class MakeDirectoryErrorAlreadyExists extends MakeDirectoryErrorAlreadyExists_base {
|
|
14
|
+
export declare class MakeDirectoryErrorAlreadyExists extends MakeDirectoryErrorAlreadyExists_base {
|
|
15
15
|
}
|
|
16
16
|
declare const MakeDirectoryErrorNotDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-directory-not-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-directory-not-directory", unknown>>, unknown>;
|
|
17
|
-
declare class MakeDirectoryErrorNotDirectory extends MakeDirectoryErrorNotDirectory_base {
|
|
17
|
+
export declare class MakeDirectoryErrorNotDirectory extends MakeDirectoryErrorNotDirectory_base {
|
|
18
18
|
}
|
|
19
19
|
declare const MakeDirectoryErrorNoSpace_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-directory-no-space", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-directory-no-space", unknown>>, unknown>;
|
|
20
|
-
declare class MakeDirectoryErrorNoSpace extends MakeDirectoryErrorNoSpace_base {
|
|
20
|
+
export declare class MakeDirectoryErrorNoSpace extends MakeDirectoryErrorNoSpace_base {
|
|
21
21
|
}
|
|
22
22
|
declare const MakeDirectoryErrorReadOnly_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-directory-read-only", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-directory-read-only", unknown>>, unknown>;
|
|
23
|
-
declare class MakeDirectoryErrorReadOnly extends MakeDirectoryErrorReadOnly_base {
|
|
23
|
+
export declare class MakeDirectoryErrorReadOnly extends MakeDirectoryErrorReadOnly_base {
|
|
24
24
|
}
|
|
25
25
|
declare const MakeDirectoryErrorInvalidArgument_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-directory-invalid-argument", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-directory-invalid-argument", unknown>>, unknown>;
|
|
26
|
-
declare class MakeDirectoryErrorInvalidArgument extends MakeDirectoryErrorInvalidArgument_base {
|
|
26
|
+
export declare class MakeDirectoryErrorInvalidArgument extends MakeDirectoryErrorInvalidArgument_base {
|
|
27
27
|
}
|
|
28
28
|
declare const MakeDirectoryErrorTooManyOpenFiles_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-directory-too-many-open-files", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-directory-too-many-open-files", unknown>>, unknown>;
|
|
29
|
-
declare class MakeDirectoryErrorTooManyOpenFiles extends MakeDirectoryErrorTooManyOpenFiles_base {
|
|
29
|
+
export declare class MakeDirectoryErrorTooManyOpenFiles extends MakeDirectoryErrorTooManyOpenFiles_base {
|
|
30
30
|
}
|
|
31
31
|
declare const MakeDirectoryErrorBusy_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-directory-busy", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-directory-busy", unknown>>, unknown>;
|
|
32
|
-
declare class MakeDirectoryErrorBusy extends MakeDirectoryErrorBusy_base {
|
|
32
|
+
export declare class MakeDirectoryErrorBusy extends MakeDirectoryErrorBusy_base {
|
|
33
33
|
}
|
|
34
34
|
declare const MakeDirectoryError_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-directory-error", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-directory-error", unknown>>, unknown>;
|
|
35
|
-
declare class MakeDirectoryError extends MakeDirectoryError_base {
|
|
35
|
+
export declare class MakeDirectoryError extends MakeDirectoryError_base {
|
|
36
36
|
}
|
|
37
37
|
export type MakeDirectoryErrors = (MakeDirectoryErrorNotFound | MakeDirectoryErrorPermissionDenied | MakeDirectoryErrorAlreadyExists | MakeDirectoryErrorNotDirectory | MakeDirectoryErrorNoSpace | MakeDirectoryErrorReadOnly | MakeDirectoryErrorInvalidArgument | MakeDirectoryErrorTooManyOpenFiles | MakeDirectoryErrorBusy | MakeDirectoryError);
|
|
38
38
|
export type MakeDirectoryResult = (DEither.Right<"file-system-make-directory", void> | DEither.Left<"file-system-make-directory-error", MakeDirectoryErrors>);
|
|
39
39
|
declare module '../implementor' {
|
|
40
40
|
interface ServerFunction {
|
|
41
|
-
makeDirectory(path:
|
|
41
|
+
makeDirectory(path: DPath.AnyPath, params?: MakeDirectoryParams): Promise<MakeDirectoryResult>;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
export declare const makeDirectory: (path:
|
|
44
|
+
export declare const makeDirectory: (path: DPath.AnyPath, params?: MakeDirectoryParams) => Promise<MakeDirectoryResult>;
|
|
45
45
|
export {};
|
|
@@ -44,4 +44,4 @@ const makeDirectory = implementFunction("makeDirectory", {
|
|
|
44
44
|
DENO: (path, params) => Deno.mkdir(path, { recursive: params?.recursive }).then(() => DEither.right("file-system-make-directory")).catch(handleDenoMakeDirectoryError)
|
|
45
45
|
});
|
|
46
46
|
//#endregion
|
|
47
|
-
export { makeDirectory };
|
|
47
|
+
export { MakeDirectoryError, MakeDirectoryErrorAlreadyExists, MakeDirectoryErrorBusy, MakeDirectoryErrorInvalidArgument, MakeDirectoryErrorNoSpace, MakeDirectoryErrorNotDirectory, MakeDirectoryErrorNotFound, MakeDirectoryErrorPermissionDenied, MakeDirectoryErrorReadOnly, MakeDirectoryErrorTooManyOpenFiles, makeDirectory };
|
|
@@ -38,4 +38,11 @@ const makeTemporaryDirectory = require_implementor.implementFunction("makeTempor
|
|
|
38
38
|
DENO: (prefix) => Deno.makeTempDir({ prefix }).then((value) => _duplojs_lang_either.right("file-system-make-temporary-directory", value)).catch(handleDenoMakeTemporaryDirectoryError)
|
|
39
39
|
});
|
|
40
40
|
//#endregion
|
|
41
|
+
exports.MakeTemporaryDirectoryError = MakeTemporaryDirectoryError;
|
|
42
|
+
exports.MakeTemporaryDirectoryErrorInvalidArgument = MakeTemporaryDirectoryErrorInvalidArgument;
|
|
43
|
+
exports.MakeTemporaryDirectoryErrorNoSpace = MakeTemporaryDirectoryErrorNoSpace;
|
|
44
|
+
exports.MakeTemporaryDirectoryErrorNotDirectory = MakeTemporaryDirectoryErrorNotDirectory;
|
|
45
|
+
exports.MakeTemporaryDirectoryErrorPermissionDenied = MakeTemporaryDirectoryErrorPermissionDenied;
|
|
46
|
+
exports.MakeTemporaryDirectoryErrorReadOnly = MakeTemporaryDirectoryErrorReadOnly;
|
|
47
|
+
exports.MakeTemporaryDirectoryErrorTooManyOpenFiles = MakeTemporaryDirectoryErrorTooManyOpenFiles;
|
|
41
48
|
exports.makeTemporaryDirectory = makeTemporaryDirectory;
|