sonoro1234/luafilesystem

Cannot read file

Closed this issue · 2 comments

Code

for file in lfs_ffi.dir[[C:\Games\Grand Theft Auto San Andreas\moonloader\Language]] do
        print(file,lfs_ffi.attributes(file,"mode"))
end

Output

.   directory
..   directory
English.ini   nil   cannot obtain information from file 'English.ini' : No such file or directory   2
for file in lfs_ffi.dir[[C:\Games\Grand Theft Auto San Andreas\moonloader\Language]] do
        print(file,lfs_ffi.attributes([[C:\Games\Grand Theft Auto San Andreas\moonloader\Language\]]..file,"mode"))
end

http://keplerproject.github.io/luafilesystem/examples.html

Thanks!