๐Ÿ“‚ Symlinks

November 14, 2019 ยท View on GitHub

Junctions

Windows (but not Unix) can use junctions. fs.symlink() allows creating these.

Permissions

Creating regular symlinks on Windows will most likely fail because it requires a "create symlink" permission which by default is off for non-admins. Also some file systems like FAT do not allow symlinks. As a consequence it is more cross-platform to copy files instead of symlinking them.

Neither junctions nor hard links (fs.link()) require permissions on Windows.

Summary

Copy files instead of symlinking them.


Next (๐Ÿ“‚ File metadata)
Previous (๐Ÿ“‚ Filenames)
Top