realbasic-nug
[Top] [All Lists]

Re: Copying a folder

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Copying a folder
From: Andrew Keller <andrew at kellerfarm dot com>
Date: Sat, 31 Jul 2004 16:18:03 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <1BCCA794-E326-11D8-9EFE-00039369B326 at kellerfarm dot com> <E7C2F7A3-E326-11D8-9179-000A959FF9F8 at mac dot com> <1AFFF01A-E329-11D8-9EFE-00039369B326 at kellerfarm dot com> <C8663E8E-E329-11D8-9179-000A959FF9F8 at mac dot com>
no no no

you need to use

dim i,c as integer
dim j as FolderItem
c=j.count


//if you are moving the files from the folder j then you need to use

for i=1 to c
f=item(1)
next

//if you are not moving the items out of j then you need to use
for i=1 to c
f=item(i)
next

I am copying, not moving - note the subject. Also, I am not copying in one step. I scan first, then copy. This allows for more advanced options and easier debugging. If I ever do want to move, then I would scan, then copy, then delete the original. I plan for this program to have very complex options, like as or a little more complex than Retrospect.

What I want is to copy a folder and it's contents, and NOT including ANYTHING outside of it. I have found that if I run into an alias, it is resolved. I don't want the file that the alias points to - I want the alias. How do I do this?

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

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

<Prev in Thread] Current Thread [Next in Thread>