Skip to content

error when retrieve symlinkatrributes at directory symlink #157

Open
@robertlzj

Description

@robertlzj

Hi,

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 

works correct on file.

Windows 10 x64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions