LUCENE-1412: clarify Directory.copy javadocs: the source dir cannot change while copy is running

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@702271 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2008-10-06 21:23:24 +00:00
parent 3f27b17a89
commit d02bbe2dfd
1 changed files with 5 additions and 0 deletions

View File

@ -168,6 +168,11 @@ public abstract class Directory {
* If a file in src already exists in dest then the
* one in dest will be blindly overwritten.
*
* <p><b>NOTE:</b> the source directory cannot change
* while this method is running. Otherwise the results
* are undefined and you could easily hit a
* FileNotFoundException.
*
* @param src source directory
* @param dest destination directory
* @param closeDirSrc if <code>true</code>, call {@link #close()} method on source directory