• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File permissions when copying files using NSFileManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File permissions when copying files using NSFileManager


  • Subject: Re: File permissions when copying files using NSFileManager
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 7 Feb 2006 22:45:15 -0500

Jeff Brown (email@hidden) on 2006-02-07 17:28 said:

>Thanks for that but I'm still not sure of the exact
>code for the changeFileAttributes:atPath: method -
>specifically the value for NSFilePosixPermissions. If
>you can give me the line of code I need to put in to
>change the file to read/write for Owner, Group and
>Others I'd very much appreciate it.

I've never used changeFileAttributes:atPath: but I suspect the
permissions would be the usual POSIX type, which are described in the
'chmod' man page (type 'man chmod') in Terminal.

But you won't be able to change the permissions of a file on a volume
where 'ignore permissions' is on.

--
"Every rule has an exception; especially this one."

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: File permissions when copying files using NSFileManager (From: "Sean McBride" <email@hidden>)
 >Re: File permissions when copying files using NSFileManager (From: Jeff Brown <email@hidden>)

  • Prev by Date: Re: NSManagedObjectContext import issue
  • Next by Date: Re: Object(s) instantiated multiple times issue
  • Previous by thread: Re: File permissions when copying files using NSFileManager
  • Next by thread: interface builder's communication problem
  • Index(es):
    • Date
    • Thread