luajitos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

fs.lua (436B)


      1 
      2 local rootNode = {
      3     "os"
      4     "apps"
      5     "tmp"
      6 }
      7 
      8 local FS = {}
      9 local FSInstance = {}
     10 
     11 FSInstance.checkPath = function(path)
     12 
     13 end
     14 
     15 FSInstance.fileRead = function(path)
     16 
     17 end
     18 
     19 function FS.removeDots(input)
     20     for i=1, str.len()
     21 end
     22 
     23 function FS.new(path, manifest)
     24     local instance = {
     25         rootDir = path or "/";
     26         curPath = "/app/com."..manifest.devName.."."
     27         allowedPaths = manifest.allowedPaths or {};
     28     }
     29 end