CoderPuppy / cc-emu

Terminal CC Emulator
MIT License
3 stars 0 forks source link

fs.delete #4

Closed Selim042 closed 8 years ago

Selim042 commented 8 years ago

Ok, this one should be a real issue, unlike my previous one:

lua> fs.list("apis")
{
  "cleverbot",
}
lua> fs.delete("apis/cleverbot")    
lua> fs.list("apis")            
{
  "cleverbot",
}

fs.delete does not seem to work as intended if within a directory or the target is a directory.

CoderPuppy commented 8 years ago

It works for me. I just added error handling to fs.delete so try with the new version and there should be an error.

Selim042 commented 8 years ago

I have a permission denied. I think I may have added the file from outside Termu then and had improper permissions for Termu to manage the file. Darn, I thought I did better this time.