ComputerMan123

Sandboxing Test

Sep 25th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. if fs.exists("/.sandbox") == false then
  2.    fs.makeDir("/.sandbox")
  3. end
  4.  
  5. local move = fs.move
  6. local open = fs.open
  7. local rename = fs.rename
  8. local delete = fs.delete
  9. local list = fs.list
  10. local copy = fs.copy
  11.  
  12. fs.list = function(path)
  13.    local p = path
  14.    path = p:gsub(path, "/.sandbox")
  15.    return list(path)
  16. end
Add Comment
Please, Sign In to add comment