FROM : Dean Snyder
DATE : Sat Jul 01 19:41:51 2006
Greg Titus wrote at 10:26 AM on Saturday, July 1, 2006:
>[[NSFileManager defaultManager] movePath:src toPath:dest
>handler:handler];
>
>Hope this helps!
From Apple documentation for NSFileManager movePath:
"If source is a file, the method creates a file at destination that
holds the exact contents of the original file and then deletes the
original file. If source is a directory, movePath:toPath:handler:
creates a new directory at destination and recursively populates it with
duplicates of the files and directories contained in source."
This is really heavyweight - I don't want all that disk activity just to
change a file entity name, plus this needs to work if the volume is
practically full.
Respectfully,
Dean A. Snyder
Manager, Digital Hammurabi Project
Computer Science Department, Whiting School of Engineering
218C New Engineering Building, 3400 North Charles Street
Johns Hopkins University
Baltimore, Maryland, USA 21218
cell: 717 817-4897
www.jhu.edu/digitalhammurabi/
DATE : Sat Jul 01 19:41:51 2006
Greg Titus wrote at 10:26 AM on Saturday, July 1, 2006:
>[[NSFileManager defaultManager] movePath:src toPath:dest
>handler:handler];
>
>Hope this helps!
From Apple documentation for NSFileManager movePath:
"If source is a file, the method creates a file at destination that
holds the exact contents of the original file and then deletes the
original file. If source is a directory, movePath:toPath:handler:
creates a new directory at destination and recursively populates it with
duplicates of the files and directories contained in source."
This is really heavyweight - I don't want all that disk activity just to
change a file entity name, plus this needs to work if the volume is
practically full.
Respectfully,
Dean A. Snyder
Manager, Digital Hammurabi Project
Computer Science Department, Whiting School of Engineering
218C New Engineering Building, 3400 North Charles Street
Johns Hopkins University
Baltimore, Maryland, USA 21218
cell: 717 817-4897
www.jhu.edu/digitalhammurabi/






Cocoa mail archive

