mirror of https://github.com/apache/lucene.git
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:
parent
3f27b17a89
commit
d02bbe2dfd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue