We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
Asynchronously computes the canonical pathname by resolving ., .., and symbolic links. A canonical pathname is not necessarily unique. Hard links and bind mounts can expose a file system entity through many pathnames.
Asynchronously computes the canonical pathname by resolving ., .., and symbolic links.
A canonical pathname is not necessarily unique. Hard links and bind mounts can expose a file system entity through many pathnames.
支持多层 symlink, 但是 symlink 的 target 需要存在, 否则 ENOENT
读取 link 的字符串信息, 需要 manual resolve
术语比较混乱, src, dest, from, target
使用 https://www.npmjs.com/package/symlink-dir
symlink('/dir/a', '/dir/b'); // /dir/b -> /dir/a
签名 symlinkDir(src, dest, opts?), symlink dest 指向 src. (啊!
symlinkDir(src, dest, opts?)
dest
src
fs.symlink
import { symlink } from 'node:fs'; symlink('./mew', './mewtwo', callback);
$ tree . . ├── mew └── mewtwo -> ./mew
ln -s ./mew ./mewtwo
都是 (existing, newSymlinkFile)
$ tree . . ├── existing └── newSymlinkFile -> ./existing
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: