lunarmodules / luafilesystem

LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution.
https://lunarmodules.github.io/luafilesystem/
MIT License
907 stars 293 forks source link

lfs.link (symlink, new[, symlink]) always create a symbolic link #147

Open robertlzj opened 3 years ago

robertlzj commented 3 years ago

lfs.link (symlink, new) (and lfs.link (symlink, new, true) of cause) always create a symbolic link. So currently when try to create hard link, need to check each old if it's a symlink first.