LEAD-451 added test case for both listFiles method.
LEAD-451 added debug for file path for debugging purposes.
LEAD-451 the new file constructor should depend on this object. previously, it will reset to deafult lucene0 and index0 and this will not pass the test keyspace lucene1 and index1.
LEAD-451 listFiles is wrongly implemented previously. re-implement to closely match java.io.File.listFiles() start with test case.
LEAD-451 don't just add, we check if current object parent is same with the parameter getparent. with this, we can achieve similar behaviour as we want in native java.io.File.listFiles(). return / as default. override tostring and equals and so we can easily check array of files.
LEAD-451 added equals method.
LEAD-451 rewrite test case for testListFiles()
LEAD-451 change the implementation of getName() so it only return filename with the preceding path and in the sametime preserve the way access to cassandra. cannot compare based on name but using absolutepath in method equals.
return empty string for name.
LEAD-451 added test method testName().
LEAD-451 improvement needed.
LEAD-451 when the file is not found in cassandra, we sync directly without going through comparison.