• 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: Jeff Brown <email@hidden>
  • Date: Tue, 7 Feb 2006 14:28:00 -0800 (PST)

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.
Cheers
Jeff

--- Sean McBride <email@hidden> wrote:

> Then that probably explains why
> changeFileAttributes:atPath: fails.  Try
> with the checkbox off.
>
> On 2006-02-03 19:00, Jeff Brown said:
>
> >  Yes the 'ignore ownership on this volume'
> checkbox is on.
> >
> >  Cheers
> >  Jeff
> >
> >Sean McBride <email@hidden> wrote:
> >  On 2006-02-01 15:34, Jeff Brown said:
> >
> >>For the sake of this explanation, I've got 2
> computers
> >>(A & B) on a network. Using NSFileManager's -
> >>copyPath:toPath:handler: method, I copy a file
> from
> >>A's harddrive to an external harddrive attached to
> A.
> >>Then when I'm using B and try change one of those
> >>files, they have read only permission. How do I
> change
> >>the file attributes at the time of copying or
> >>immediately after to give read write access to
> user,
> >>groups and other. I've tried using -
> >>changeFileAttributes:atPath: but have had no
> success -
> >>I'm assuming I'm not using it properly. Cheers
> Jeff.
>
> --
>
____________________________________________________________
> Sean McBride, B. Eng
> email@hidden
> Rogue Research
> www.rogue-research.com
> Mac Software Developer              Montréal,
> Québec, Canada
>
>
>

 _______________________________________________
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

  • Follow-Ups:
    • Re: File permissions when copying files using NSFileManager
      • From: "Sean McBride" <email@hidden>
References: 
 >Re: File permissions when copying files using NSFileManager (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Core Data, binding & selecting table rows upon document open
  • Next by Date: default compression on whacked tv?
  • Previous by thread: Re: File permissions when copying files using NSFileManager
  • Next by thread: Re: File permissions when copying files using NSFileManager
  • Index(es):
    • Date
    • Thread