Posted 19 June 2016 - 10:52 PM
Hi everyone. This API will allow you to perform certain actions on disk drives.
Here are some code snippets:
So what do you think of this API? Will it be added to CC? CraftOS 2.0's Drive API?
Here are some code snippets:
Drive.ShowSpace - Shows the current space of the HDD returns nil when it has no space
Drive.Wipe - Wipes the HDD
Drive.Park - Parks the HDD heads
Drive.Encrypt - Encrypts the HDD
Drive.Space - A var that returns the space of the drive to if statements
Drives.GetExtDrives - Retrieves Info about external fdd drives
- Here's some proper code
While true do
Print(Drive.ShowSpace)
if Drive.Space = 0.0 then print ("Out of Space")
end
So what do you think of this API? Will it be added to CC? CraftOS 2.0's Drive API?