No, I'm building a package builder and I want to copy files to another part of the same filesystem or maybe to another partition. So I really need to preserve the permissions.

I was playing with the permissions class and I guess I'm not sure what is going on here ...

Dim f as folderitem
f = Specialfolder.Applications
Dim i As Integer
i = f.permissions
Msgbox str(i)

and I get back "509" it should be 775. What am I going wrong?

Thanks,
Charles


On Sep 21, 2006, at 6:01 PM, Phil M wrote:

On Sep 21, 2006, at 5:48 PM, Charles E. Heizer wrote:

I'm writing an app that will copy files from one directory to another, and that part works fine. But what I've noticed is that the permissions are not preserved. Is there some way to preserve the permissions when issuing a CopyFileTo?

External hard drives do not have to use permissions (usually that is best). Are you copying to an external device?

I haven't used it, but there is a new Permissions class in REALbasic 2006... you might try that.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to