@ai-ecoverse/slicc-kernel 1.71.0 → 1.71.1

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/node.js CHANGED
@@ -3828,7 +3828,14 @@ var OpfsFs = class {
3828
3828
  links() {
3829
3829
  return false;
3830
3830
  }
3831
- async link(from) {
3831
+ async link(from, to, follow2) {
3832
+ await (follow2 ? this.stat(from) : this.lstat(from));
3833
+ if (!(await this.stat(parentOf4(to))).isDirectory) throw fsError("ENOTDIR", to);
3834
+ if (await this.lstat(to).then(
3835
+ () => true,
3836
+ () => false
3837
+ ))
3838
+ throw fsError("EEXIST", to);
3832
3839
  throw fsError("EPERM", `${from}: this file system has no hard links`);
3833
3840
  }
3834
3841
  async rename(from, to) {