@poe-platform/safe-fs 0.1.47 → 0.1.49
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.
|
@@ -23,7 +23,7 @@ async function usedBytes(fs, options) {
|
|
|
23
23
|
}
|
|
24
24
|
async function existingBytes(fs, path, options) {
|
|
25
25
|
try {
|
|
26
|
-
const stat = await fs.
|
|
26
|
+
const stat = await fs.stat(path, options);
|
|
27
27
|
return stat.type === "directory" ? 0 : stat.size;
|
|
28
28
|
}
|
|
29
29
|
catch (error) {
|
|
@@ -75,7 +75,7 @@ export function withFileSystemQuota(fs, options) {
|
|
|
75
75
|
},
|
|
76
76
|
link(source, destination, linkOptions) {
|
|
77
77
|
return mutate(async () => {
|
|
78
|
-
await assertDelta(destination, (await fs.
|
|
78
|
+
await assertDelta(destination, (await fs.lstat(source, linkOptions)).size, linkOptions);
|
|
79
79
|
await fs.link(source, destination, linkOptions);
|
|
80
80
|
});
|
|
81
81
|
},
|