View Full Version : Copying only certain file types with Rendezvous


Travis
09-13-2003, 04:46 PM
Here's the general problem: I want to sync a folder on my iBook (OS X
10.2) with a folder on my Windows machine at work. There are thousands
of files on the work machine folder - .java, .class, .gif, .jpg, ... -
but I only want to recursively get the .java files.

Currently I create the Rendezvous folder and copy the whole thing
including the files I don't care about.

How do I specify to copy only files of a certain type, e.g. the .java
files?

I'd be curious if there's a drag-and-drop way to do this.

I'd also like to know if there's a way to do this on the Terminal. I
do know how to construct a 'find' and 'cp' request. I do NOT know how
to refer to the Rendezvous connected folder when in a Terminal
session. Is there a way to do this?

Thanks.

David C.
09-13-2003, 08:37 PM
powderpain[at]hotmail.com (Travis) writes:
>
> Here's the general problem: I want to sync a folder on my iBook (OS
> X 10.2) with a folder on my Windows machine at work. There are
> thousands of files on the work machine folder - .java, .class, .gif,
> .jpg, ... - but I only want to recursively get the .java files.
>
> Currently I create the Rendezvous folder and copy the whole thing
> including the files I don't care about.
>
> How do I specify to copy only files of a certain type, e.g. the
> .java files?

Trivial.

Open the top-level folder that you want to start searching from.
Then type in ".java" in the search bubble (right edge of the default
toolbar) and press RETURN. Let the search finish. Now drag the
files to the destination. (Remember to option-drag to force a copy
if you drag to a folder on the same drive, otherwise it will move the
files.)

> I'd also like to know if there's a way to do this on the Terminal. I
> do know how to construct a 'find' and 'cp' request. I do NOT know
> how to refer to the Rendezvous connected folder when in a Terminal
> session. Is there a way to do this?

Can't help here. I haven't used Rendezvous folders before.

-- David

Harvey Waxman
09-13-2003, 08:59 PM
In article <m2d6e4scnv.fsf[at]qqqq.invalid>, shamino[at]techie.com (David C.) wrote:

> Open the top-level folder that you want to start searching from.
> Then type in ".java" in the search bubble (right edge of the default
> toolbar) and press RETURN. Let the search finish.

Does this imply that it searches below the top level as well? It doesn't appear
to for me.


--
Harvey Products makers of Dinghy Dogs(TM)
The Boater's Best Friend
http://www.dinghydogs.com
Remove thefrown to email me

David C.
09-13-2003, 09:06 PM
Harvey Waxman writes:
> David C. wrote:
>>
>> Open the top-level folder that you want to start searching from.
>> Then type in ".java" in the search bubble (right edge of the
>> default toolbar) and press RETURN. Let the search finish.
>
> Does this imply that it searches below the top level as well? It
> doesn't appear to for me.

It did when I tried it just now. I opened my home directory and
typed my keyword into the bubble. It found everything underneath it.

Just in case you were being too literal, leave out the quotation
marks from ".java" when typing in your search key.

-- David

Harvey Waxman
09-13-2003, 09:50 PM
In article <m28yosqwqo.fsf[at]qqqq.invalid>, shamino[at]techie.com (David C.) wrote:

> Harvey Waxman writes:
> > David C. wrote:
> >>
> >> Open the top-level folder that you want to start searching from.
> >> Then type in ".java" in the search bubble (right edge of the
> >> default toolbar) and press RETURN. Let the search finish.
> >
> > Does this imply that it searches below the top level as well? It
> > doesn't appear to for me.
>
> It did when I tried it just now. I opened my home directory and
> typed my keyword into the bubble. It found everything underneath it.
>
> Just in case you were being too literal, leave out the quotation
> marks from ".java" when typing in your search key.
>
> -- David
that wasn't it. I figured it out. The folder I selected had a bunch of aliased
folders in it and the files weren't found although they appeared when I clicked
on them directly. I guess it doesn't work on aliases.



--
Harvey Products makers of Dinghy Dogs(TM)
The Boater's Best Friend
http://www.dinghydogs.com
Remove thefrown to email me

David C.
09-14-2003, 04:53 AM
Harvey Waxman <info[at]dinghydogs.comthefrown> writes:
>
> that wasn't it. I figured it out. The folder I selected had a bunch
> of aliased folders in it and the files weren't found although they
> appeared when I clicked on them directly. I guess it doesn't work
> on aliases.

No, I wouldn't expect it to traverse through aliases to folders.

While it might be a nice feature, it makes find programs much more
complicated, because you can create an infinite loop (e.g. you can
create an alias to your own parent folder,) and the program will have
to have enough smarts to not get caught.

Glad you found out what was happening.

-- David

Travis
09-14-2003, 07:40 AM
Thanks for the UI (Finder) way of doing this. Meanwhile, I figured out
how to do it from the command line (Terminal).

So if you want to do this Unix-style ...

The Rendezvous connections are "mounts". When I typed 'mount' at the
prompt, it showed up as being a directory hanging off the "/Volumes"
directory.

The recursive folder creation was hell to figure out. The beauty of
Unix is there are a dozen acceptable ways to accomplish any particular
task. The difficulty is that folks like me who use it periodically but
not every day have this love/hate relationship.

One way is this:

- Go the directory where the source files are.
- Command:
-- cd /Volumes/10.0.1.2/myfiles
- Run a find/cpio with the desired file pattern.
- Command:
-- find . -name "*.java" -print | cpio -pvdu
~/Applications/eclipse/workspace/myproject/src


Harvey Waxman <info[at]dinghydogs.comthefrown> wrote in message news:<info-838E11.16504713092003[at]news.east.cox.net>...
> In article <m28yosqwqo.fsf[at]qqqq.invalid>, shamino[at]techie.com (David C.) wrote:
>
> > Harvey Waxman writes:
> > > David C. wrote:
> > >>
> > >> Open the top-level folder that you want to start searching from.
> > >> Then type in ".java" in the search bubble (right edge of the
> > >> default toolbar) and press RETURN. Let the search finish.
> > >
> > > Does this imply that it searches below the top level as well? It
> > > doesn't appear to for me.
> >
> > It did when I tried it just now. I opened my home directory and
> > typed my keyword into the bubble. It found everything underneath it.
> >
> > Just in case you were being too literal, leave out the quotation
> > marks from ".java" when typing in your search key.
> >
> > -- David
> that wasn't it. I figured it out. The folder I selected had a bunch of aliased
> folders in it and the files weren't found although they appeared when I clicked
> on them directly. I guess it doesn't work on aliases.