commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "richard head" <>
Subject VFS copyFrom() Does Not Include Source in Directory Copy
Date Tue, 11 Sep 2007 19:17:20 GMT
In the javadocs for copyFrom() it says: "Copies another file, and all its 
descendents, to this file..."
This "another file"- the srcFile argument- should then be copied correct?

$ ls /cygdrive/c/in/
New Text Document.txt

$ ls /cygdrive/c/out/


FileObject destFile = manager.resolveFile("C:\\out");
FileObject srcFile = manager.resolveFile("C:\\in");


$ java Bs

$ ls /cygdrive/c/out/
New Text Document.txt

As you can see, in is not a subdirectory of out. Are the docs wrong, or is 
this a bug?


Gear up for HaloŽ 3 with free downloads and an exclusive offer.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message