Advertisement
Guest User

sandbox

a guest
Sep 25th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 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.    path = string.gsub(path, "/", ".sandbox")
  14.    return list(path)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement