NSFileManager: removing item

前端 未结 3 1979
没有蜡笔的小新
没有蜡笔的小新 2021-01-28 23:36

The problem is removing an item that´s been written using writeToFile: method, I cannot seem to remove it. I tried NSFileManager but I guess these are two different

3条回答
  •  既然无缘
    2021-01-29 00:23

    If your file is present at that path you can try this:

        [[NSFileManager defaultManager] removeItemAtPath:[destinationURL path] error:&error];
    

    Hope this helps.

提交回复
热议问题