sonoro1234 / luafilesystem

Reimplement luafilesystem via LuaJIT FFI with unicode facilities
MIT License
24 stars 6 forks source link

Cannot read file #6

Closed GeTechG closed 4 years ago

GeTechG commented 4 years ago

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
sonoro1234 commented 4 years ago
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

GeTechG commented 4 years ago

Thanks!