Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local raid = require("raidmanager")
- local command, arg1, arg2, arg3 = table.unpack({...})
- if command == "getFileSize" then
- print(raid.getFileSize(arg1, arg2)) --drive, loc
- elseif command == "getDataSize" then
- print(raid.getDataSize(arg1, arg2)) --name, data
- elseif command == "getRemainingSpaces" then
- print(table.unpack(raid.getRemainingSpaces()))
- elseif command == "refreshParity" then
- print(raid.refreshParity())
- elseif command == "readFile" then
- print(raid.readFile(arg1, arg2, arg3)) --drive, loc, address
- elseif command == "writeFile" then
- print(raid.writeFile(arg1, arg2, arg3)) --name, address, data
- elseif command == "findFile" then
- print(raid.findFile(arg1, arg2)) --name, address
- elseif command == "readByName" then
- print(raid.readByName(arg1, arg2)) --name, address
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement