It looks like you're new here. If you want to get involved, click one of these buttons!
n1cke            
            
                Maintainer             
            local function getDisks() local lfs = require "lfs" local disks = {} for i = 65, 90 do local letter = string.char(i) local att = lfs.attributes(letter..":/.") if att then table.insert(disks, letter..":") end end return disks --> {"C:", "D:", "E:"...} end  | 
Comments
Likes: n1cke
It works perfect for Android and iOS:
Hovewer on Windows that `getDisks` function still must be used because "/." only gives you content of the disk with installed Windows.
Not sure about WinRT.
Likes: n1cke