On Aug 18, 2006, at 3:37 PM, Charles Calvert wrote:
On 8/18/2006 2:59 PM, Norman Palardy wrote:
On Aug 18, 2006, at 12:50 PM, Charles Calvert wrote:
And, since it is a thread of your own design it's possible to
get some
feed back on how much has been copied; something not possible with
CopyFileTo.
Sorry, but I thought you were suggesting that I use CopyFileTo to
copy
individual files inside my worker thread. Do you mean that I can
get
feedback because I'm using separate threads (and thus can push
progress
info back to the GUI via events, etc.) or because I would replace
CopyFileTo with an API call?
Actually you can copy files entirely in RB code without using
CopyFileTo
so you can hook in any kind of progress you'd like as you code runs.
And you can still copy files very quickly this way
By opening the files in binary and just reading/writing the raw bytes
using the BinaryStream class or something similar, I presume. Will
that
copy the data fork only, or both the data and resource forks?
As fast as using an API directly ? ... unsure ... I'd suspect the API
would have some performance advantage.
I would guess so too. Can you point me to a piece of sample code that
shows how to use the API functions, preferably ones that don't
mangle OS
X-compliant filenames? I Googled the web and searched the list
archives
and didn't find one.
You might take a look at my book on declares at <http://
www.declareSub.com/>. There is a chapter on the MacOS File Manager.
There is no code that does exactly what you want, but it might help
you get started.
Also, you posted some code in an earlier message; it will not do what
you expect for folders containing aliases. You need to use TrueItem.
Charles Yeomans
_______________________________________________
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>