@dbx-tools/fs 0.9.95 → 0.9.105
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/README.md +13 -3
- package/index.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
# @dbx-tools/fs
|
|
2
2
|
|
|
3
3
|
Node local-disk `FileSystem` implementation of the `@dbx-tools/shared-fs`
|
|
4
|
-
contract. Built on `BaseFileSystem`, so this package only
|
|
4
|
+
contract. Built on `BaseFileSystem`, so this package only implements host separator
|
|
5
5
|
conversion (`toBackendPath`), Node I/O, symlink containment (`preparePath`), and
|
|
6
6
|
errno mapping.
|
|
7
7
|
|
|
8
|
+
## Quick Start
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
import { LocalFileSystem } from "@dbx-tools/fs";
|
|
12
|
+
|
|
13
|
+
const files = new LocalFileSystem({ root: "./data" });
|
|
14
|
+
await files.init();
|
|
15
|
+
await files.writeFile("hello.txt", "hi");
|
|
16
|
+
```
|
|
17
|
+
|
|
8
18
|
Key features:
|
|
9
19
|
|
|
10
20
|
- Contained-by-default path resolution under a configured root
|
|
@@ -17,13 +27,13 @@ Key features:
|
|
|
17
27
|
- Native append / copy / rename via Node when available
|
|
18
28
|
- Cross-process serialization for concurrent rebuilds of the same stable temp tree
|
|
19
29
|
|
|
20
|
-
##
|
|
30
|
+
## Use With Native Node fs
|
|
21
31
|
|
|
22
32
|
Use this when callers should speak the portable `FileSystem` interface (the same
|
|
23
33
|
surface FTP, object storage, or Databricks mounts can implement) rather than
|
|
24
34
|
Node APIs directly. Reach for `node:fs` when you only need one-off local I/O.
|
|
25
35
|
|
|
26
|
-
##
|
|
36
|
+
## Filesystem Helpers
|
|
27
37
|
|
|
28
38
|
```ts
|
|
29
39
|
import { LocalFileSystem, localFS } from "@dbx-tools/fs";
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
|
|
5
5
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/fs";
|
|
6
|
-
export const PACKAGE_VERSION = "0.9.
|
|
6
|
+
export const PACKAGE_VERSION = "0.9.105";
|
|
7
7
|
export * as localFS from "./src/local-fs.ts";
|
|
8
8
|
export * as localPath from "./src/local-path.ts";
|
|
9
9
|
export * as osPath from "./src/os-path.ts";
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const PACKAGE_IDENTIFIER = "@dbx-tools/fs";
|
|
2
|
-
export declare const PACKAGE_VERSION = "0.9.
|
|
2
|
+
export declare const PACKAGE_VERSION = "0.9.105";
|
|
3
3
|
export * as localFS from "./src/local-fs.ts";
|
|
4
4
|
export * as localPath from "./src/local-path.ts";
|
|
5
5
|
export * as osPath from "./src/os-path.ts";
|
package/lib/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// Regenerated from the exporting modules in ./src.
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/fs";
|
|
5
|
-
export const PACKAGE_VERSION = "0.9.
|
|
5
|
+
export const PACKAGE_VERSION = "0.9.105";
|
|
6
6
|
export * as localFS from "./src/local-fs.js";
|
|
7
7
|
export * as localPath from "./src/local-path.js";
|
|
8
8
|
export * as osPath from "./src/os-path.js";
|
|
9
9
|
export { LocalFileSystem } from "./src/local-fs.js";
|
|
10
10
|
export { isHomeRelativePath } from "./src/local-path.js";
|
|
11
11
|
export { APP_HOME } from "./src/os-path.js";
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9p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xuZXhwb3J0ICogYXMgb3NQYXRoIGZyb20gXCIuL3NyYy9vcy1wYXRoLnRzXCI7XG5leHBvcnQgeyBMb2NhbEZpbGVTeXN0ZW0gfSBmcm9tIFwiLi9zcmMvbG9jYWwtZnMudHNcIjtcbmV4cG9ydCB0eXBlIHsgTG9jYWxGaWxlU3lzdGVtT3B0aW9ucywgT3NGaWxlU3lzdGVtT3B0aW9ucyB9IGZyb20gXCIuL3NyYy9sb2NhbC1mcy50c1wiO1xuZXhwb3J0IHsgaXNIb21lUmVsYXRpdmVQYXRoIH0gZnJvbSBcIi4vc3JjL2xvY2FsLXBhdGgudHNcIjtcbmV4cG9ydCB7IEFQUF9IT01FIH0gZnJvbSBcIi4vc3JjL29zLXBhdGgudHNcIjtcbmV4cG9ydCB0eXBlIHsgT3NQYXRocywgUmVzb2x2ZU9zUGF0aHNPcHRpb25zIH0gZnJvbSBcIi4vc3JjL29zLXBhdGgudHNcIjtcbiJdfQ==
|
package/package.json
CHANGED
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"typescript": "^5.9.3"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@dbx-tools/core": "^0.9.
|
|
27
|
-
"@dbx-tools/shared-core": "^0.9.
|
|
28
|
-
"@dbx-tools/shared-fs": "^0.9.
|
|
26
|
+
"@dbx-tools/core": "^0.9.105",
|
|
27
|
+
"@dbx-tools/shared-core": "^0.9.105",
|
|
28
|
+
"@dbx-tools/shared-fs": "^0.9.105"
|
|
29
29
|
},
|
|
30
30
|
"main": "./lib/index.js",
|
|
31
31
|
"license": "Apache-2.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"./package.json": "./package.json"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
"version": "0.9.
|
|
56
|
+
"version": "0.9.105",
|
|
57
57
|
"types": "./lib/index.d.ts",
|
|
58
58
|
"dbxToolsConfig": {
|
|
59
59
|
"tags": [
|