Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- local backUpFs = fs
- local fileSys = {}
- fileSys.combine = backUpFs.combine
- fileSys.isReadOnly = function(...)
- return true
- end
- fileSys.getSize = backUpFs.getSize
- fileSys.move = function(...)
- return false
- end
- fileSys.exists = backUpFs.exists
- fileSys.copy = function(...)
- return false
- end
- fileSys.getFreeSpace = backUpFs.getFreeSpace
- fileSys.makeDir = function(...)
- return false
- end
- fileSys.delete = function(...)
- return false
- end
- fileSys.open = function(location,mode,...)
- if mode == "r" then
- return backUpFs.open(location,mode,...)
- else
- return
- end
- end
- fileSys.list = function(this,...)
- if this == "" or this == "\\" or this == "/" or this == "\\\\" or this == "//" then
- return {"root"}
- else
- return backUpFs.list(this,...)
- end
- end
- fileSys.getDrive = backUpFs.getDrive
- fileSys.getName = backUpFs.getname
- fileSys.isDir = backUpFs.isDir
- fs = fileSys
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement