This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
gril002's profile picture

Whiping all data from a PoC

Started by gril002, 18 May 2016 - 06:47 PM
gril002 #1
Posted 18 May 2016 - 08:47 PM
I am trying to whipe clean a Pocket computer from a program on a computer with a disk drive. If I use fs.delete("drive") then it says Access denied. So is it not possible or do I need to use a difrent path?
Chickenbreadlp #2
Posted 18 May 2016 - 09:03 PM
If you use fs.delete("/disk/*") it will delete everything on the disk.
Lupus590 #3
Posted 18 May 2016 - 09:05 PM
It could be having problems with deleting the pocket computers ROM folder (drive/ROM), try deleting everything but that folder.
Chickenbreadlp #4
Posted 18 May 2016 - 09:08 PM
It could be having problems with deleting the pocket computers ROM folder (drive/ROM), try deleting everything but that folder.
If I ran "rm *" it would also give me an access denied, even though it deleted everything except the rom folder.
gril002 #5
Posted 18 May 2016 - 09:22 PM
fs.delete("/disk/*") dosen't work. I still get Access denied
Anavrins #6
Posted 18 May 2016 - 09:28 PM
fs.delete doesn't handle wildcards, it's the shell api that handles the output of fs.find("disk/*") and executes fs.delete on all of the files.