Hello Theodore,
Charles Yeomans is your friend :-)
Take a look at this page of its excellent iDeclare book :
http://www.declaresub.com/iDeclare/Files/index.html
François Van Lerberghe
Rue Thier Monty, 15 A
4570 Marchin
Belgique
le 1/07/06 15:00, Theodore H. Smith <[EMAIL PROTECTED]> a écrit :
> I'm trying to write a handy utility class that lets me write to
> files, quickly, and safely.
>
> The idea is, that it creates a temp file, and then after the save
> operation is complete, it renames the temp file over to the old
> file's name. (It deletes the old file before renaming the temp file.)
>
> Now, this has one main problem. File metadata. Creation dates, unix
> permissions, finder label coloring, all that sort of stuff.
>
> Is there some handy way to copy file metadata from one file to
> another? Setting the file's creation date is no problem. But what
> about the Unix permissions? I'd be pretty annoyed if I edited a nice
> perl script, only to find that this script no longer executes due to
> unix permissions disapearing :(
>
> Anyone made a handy "CopyFileMeta(fromFile as folderitem, toFile as
> folderitem)" function??
_______________________________________________
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>