38 posts
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?
77 posts
Location
Germany
Posted 18 May 2016 - 09:03 PM
If you use fs.delete("/disk/*") it will delete everything on the disk.
2427 posts
Location
UK
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.
77 posts
Location
Germany
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.
38 posts
Posted 18 May 2016 - 09:22 PM
fs.delete("/disk/*") dosen't work. I still get Access denied
756 posts
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.