public class ExtrasFS extends FilterFileSystemProvider
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 a file or directory named "extraNNNN" will be included with it. All other filesystem operations are passed thru as normal.
delegate, fileSystem, scheme
Constructor and Description |
---|
ExtrasFS(FileSystem delegate,
Random random)
Create a new instance, wrapping
delegate . |
Modifier and Type | Method and Description |
---|---|
void |
createDirectory(Path dir,
FileAttribute<?>... attrs) |
checkAccess, copy, createLink, createSymbolicLink, delete, deleteIfExists, getFileAttributeView, getFileStore, getFileSystem, getPath, getScheme, isHidden, isSameFile, move, newAsynchronousFileChannel, newByteChannel, newDirectoryStream, newFileChannel, newFileSystem, newFileSystem, newInputStream, newOutputStream, onClose, readAttributes, readAttributes, readSymbolicLink, setAttribute, toString
installedProviders
public ExtrasFS(FileSystem delegate, Random random)
delegate
.public void createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException
createDirectory
in class FilterFileSystemProvider
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.