Cocoa - NSFileManager removeItemAtPath Not Working

前端 未结 6 614
再見小時候
再見小時候 2021-01-21 04:03

I am trying to delete a file, but somehow nsfilemanager will not allow me to do so. I do use the file in one line of code, but once that action has been ran, I want the file del

6条回答
  •  野的像风
    2021-01-21 04:50

    Error code 4 seems to be NSNoSuchFileError. If the file you want to delete really exists, then you have got the path wrong. You'll need to post some code if you want us to tell you exactly how you got the path wrong.

    If the file doesn't exist, you can ignore the error.

提交回复
热议问题