if fs.exists(location.."/chat") == true then fs.delete(location.."/chat") end
Access Denied to fs.delete?
Started by brett122798, Oct 07 2012 09:35 PM
10 replies to this topic
#1
Posted 07 October 2012 - 09:35 PM
Hey, I'm pretty confused on how when deleting this file, it says "Access Denied." Here's a small part of the code:
#2
Posted 07 October 2012 - 09:46 PM
brett122798, on 07 October 2012 - 09:35 PM, said:
Hey, I'm pretty confused on how when deleting this file, it says "Access Denied." Here's a small part of the code:
if fs.exists(location.."/chat") == true then fs.delete(location.."/chat") end
This depends on the value of location, what is it? You can't delete files in /rom . And often, you can't delete files that are opened externally or something like that.
#3
Posted 07 October 2012 - 09:46 PM
Where is the file at? If it's in rom, you cannot edit the rom, so it would most certainly say "Access Denied".
#4
Posted 07 October 2012 - 09:49 PM
Fixed the problem, don't know why it happened, really.
#5
Posted 08 October 2012 - 01:01 AM
How did you manage to fix the problem brett?
#7
Posted 08 October 2012 - 07:00 AM
I had that happen to me when I opened files in programs but didn't close them xD
#9
#10
#11
Posted 08 October 2012 - 09:30 PM
Pinkishu, on 08 October 2012 - 02:52 PM, said:
1. lol
2. Oh, ok. Didn't read your post right.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users


This topic is locked








