ExtrasFS
class ExtrasFS(delegate: FileSystem, val active: Boolean, val createDirectory: Boolean) : FilterFileSystemProvider
Adds extra files/subdirectories when directories are created.
Lucene shouldn't care about these, but sometimes operating systems create special files themselves (.DS_Store, thumbs.db, .nfsXXX, ...), so we add them and see what breaks.
When a directory is created, sometimes an "extra" file or directory will be included with it (use isExtra to check if it's one of those files).
All other filesystem operations are delegated as normal.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun openReadWrite(file: Path, mustCreate: Boolean = false, mustExist: Boolean = false): FileHandle