Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Operating System: other
Platform: All
-
6914
Description
There is a problem when you try to create a directory (FSDirectory) that doesn't exists and you
specified a path with a depth greater than 1.
For example: lucia/index/
The problem
lays on the method
private synchronized void create() throws IOException {
if
(!directory.exists())
directory.mkdir(); <======== HERE SHOULD BE mkdirs();
String[] files = directory.list(); // clear old files
for (int i = 0; i < files.length; i++)
}
Regerds