Re: File Permissions - NSFileManager Swift

2015-06-30 Thread Arved von Brasch
On 30 Jun 2015, at 02:29, Jens Alfke j...@mooseyard.com wrote: It always helps people answer questions if you post the exact error you get. Generally when there are mysteriously un-deletable files, it has something to do with filesystem extended attributes like ‘immutable’. You can

Re: File Permissions - NSFileManager Swift

2015-06-30 Thread Jens Alfke
On Jun 30, 2015, at 6:26 AM, Arved von Brasch co...@atgo.org wrote: Thank you for replying. I was reporting the error I got back from the NSError, which doesn’t give much detail. Every NSError has an error domain and code, which is what I was asking for. Often there’s other useful

File Permissions - NSFileManager Swift

2015-06-29 Thread Arved von Brasch
Dear Cocoa List, I’m trying to remove an application package using NSFileManager.defaultManager().removeItemAtPath(self.appPackage, error: error) The application package was put at this location using NSFileManager.defaultManager().copyItemAtURL(pathURL as! NSURL, toURL: self.appPackage,

Re: File Permissions - NSFileManager Swift

2015-06-29 Thread Jens Alfke
It always helps people answer questions if you post the exact error you get. Generally when there are mysteriously un-deletable files, it has something to do with filesystem extended attributes like ‘immutable’. You can display these by using “ls -l@“. —Jens