diff --git a/src/java/org/apache/lucene/store/FSDirectory.java b/src/java/org/apache/lucene/store/FSDirectory.java index 6c1546546bc..c242d515840 100644 --- a/src/java/org/apache/lucene/store/FSDirectory.java +++ b/src/java/org/apache/lucene/store/FSDirectory.java @@ -372,6 +372,10 @@ public final class FSDirectory extends Directory { } } + public File getFile() { + return directory; + } + /** For debug output. */ public String toString() { return "FSDirectory@" + directory;