@zenfs/core 1.6.7 → 1.6.8
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/backends/backend.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ErrnoError, Errno } from '../error.js';
|
|
|
2
2
|
import { levenshtein } from '../utils.js';
|
|
3
3
|
/** @internal */
|
|
4
4
|
export function isBackend(arg) {
|
|
5
|
-
return arg != null && typeof arg == 'object' && '
|
|
5
|
+
return arg != null && typeof arg == 'object' && 'create' in arg && typeof arg.create == 'function';
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Checks that `options` object is valid for the file system options.
|
package/dist/emulation/sync.js
CHANGED
|
@@ -518,7 +518,7 @@ export function linkSync(targetPath, linkPath) {
|
|
|
518
518
|
if (config.checkAccess && !fs.statSync(path).hasAccess(constants.R_OK, this)) {
|
|
519
519
|
throw ErrnoError.With('EACCES', path, 'link');
|
|
520
520
|
}
|
|
521
|
-
return fs.linkSync(path,
|
|
521
|
+
return fs.linkSync(path, link.path);
|
|
522
522
|
}
|
|
523
523
|
catch (e) {
|
|
524
524
|
throw fixError(e, { [path]: targetPath, [link.path]: linkPath });
|