Advertisement
Guest User

raid

a guest
Nov 21st, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. local raid = require("raidmanager")
  2.  
  3. local command, arg1, arg2, arg3 = table.unpack({...})
  4.  
  5. if command == "getFileSize" then
  6. print(raid.getFileSize(arg1, arg2)) --drive, loc
  7. elseif command == "getDataSize" then
  8. print(raid.getDataSize(arg1, arg2)) --name, data
  9. elseif command == "getRemainingSpaces" then
  10. print(table.unpack(raid.getRemainingSpaces()))
  11. elseif command == "refreshParity" then
  12. print(raid.refreshParity())
  13. elseif command == "readFile" then
  14. print(raid.readFile(arg1, arg2, arg3)) --drive, loc, address
  15. elseif command == "writeFile" then
  16. print(raid.writeFile(arg1, arg2, arg3)) --name, address, data
  17. elseif command == "findFile" then
  18. print(raid.findFile(arg1, arg2)) --name, address
  19. elseif command == "readByName" then
  20. print(raid.readByName(arg1, arg2)) --name, address
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement