local lfs=require'lfs'
print(lfs._VERSION)--1.8.0
local file1,file2='test_directory','symlink-directory'
assert(not lfs.attributes(file1) and not lfs.attributes(file2))
lfs.mkdir(file1)
lfs.link(file1,file2,true)
assert(lfs.symlinkattributes(file2,'target')=="Input/output error")--should be path
assert(not pcall(lfs.symlinkattributes,file2))--should not raise error 'attempt to index a nil value'
return
Hi,
works correct on file.
Windows 10 x64