public abstract class LocalFileSystem extends NewVirtualFileSystem
Modifier and Type | Class and Description |
---|---|
static interface |
LocalFileSystem.WatchRequest |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROTOCOL |
static java.lang.String |
PROTOCOL_PREFIX |
DEFAULT_LENGTH, DEFAULT_TIMESTAMP
Constructor and Description |
---|
LocalFileSystem() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<LocalFileSystem.WatchRequest> |
addRootsToWatch(java.util.Collection<java.lang.String> rootPaths,
boolean watchRecursively) |
LocalFileSystem.WatchRequest |
addRootToWatch(java.lang.String rootPath,
boolean watchRecursively) |
abstract VirtualFile |
findFileByIoFile(java.io.File file) |
static LocalFileSystem |
getInstance() |
abstract VirtualFile |
refreshAndFindFileByIoFile(java.io.File file) |
abstract void |
refreshFiles(java.lang.Iterable<? extends VirtualFile> files)
Performs a non-recursive synchronous refresh of specified files.
|
abstract void |
refreshFiles(java.lang.Iterable<? extends VirtualFile> files,
boolean async,
boolean recursive,
java.lang.Runnable onFinish) |
abstract void |
refreshIoFiles(java.lang.Iterable<? extends java.io.File> files)
Performs a non-recursive synchronous refresh of specified files.
|
abstract void |
refreshIoFiles(java.lang.Iterable<? extends java.io.File> files,
boolean async,
boolean recursive,
java.lang.Runnable onFinish)
Performs the refresh of the specified files based on filesystem events that have already been received.
|
abstract void |
registerAuxiliaryFileOperationsHandler(LocalFileOperationsHandler handler)
Registers a handler that allows a version control system plugin to intercept file operations in the local file system
and to perform them through the VCS tool.
|
void |
removeWatchedRoot(LocalFileSystem.WatchRequest watchRequest) |
void |
removeWatchedRoots(java.util.Collection<LocalFileSystem.WatchRequest> watchRequests) |
LocalFileSystem.WatchRequest |
replaceWatchedRoot(LocalFileSystem.WatchRequest watchRequest,
java.lang.String rootPath,
boolean watchRecursively) |
abstract java.util.Set<LocalFileSystem.WatchRequest> |
replaceWatchedRoots(java.util.Collection<LocalFileSystem.WatchRequest> watchRequests,
java.util.Collection<java.lang.String> recursiveRoots,
java.util.Collection<java.lang.String> flatRoots)
Stops watching given watch requests and starts watching new paths.
|
abstract void |
unregisterAuxiliaryFileOperationsHandler(LocalFileOperationsHandler handler)
Unregisters a handler that allows a version control system plugin to intercept file operations in the local file system
and to perform them through the VCS tool.
|
addVirtualFileListener, copyFile, createChildDirectory, createChildFile, deleteFile, extractRootPath, findFileByPathIfCached, getAttributes, getCanonicallyCasedName, getRank, hasChildren, isReadOnly, isSymLink, markNewFilesAsDirty, moveFile, normalize, refreshWithoutFileWatcher, removeVirtualFileListener, renameFile, resolveSymLink
extractPresentableUrl, findFileByPath, getProtocol, isCaseSensitive, isValidName, refresh, refreshAndFindFileByPath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentsToByteArray, exists, getInputStream, getLength, getOutputStream, getTimeStamp, isDirectory, isWritable, list, setTimeStamp, setWritable
public static final java.lang.String PROTOCOL
public static final java.lang.String PROTOCOL_PREFIX
public static LocalFileSystem getInstance()
public abstract VirtualFile findFileByIoFile(java.io.File file)
public abstract VirtualFile refreshAndFindFileByIoFile(java.io.File file)
public abstract void refreshIoFiles(java.lang.Iterable<? extends java.io.File> files)
files
- files to refresh.refreshIoFiles(Iterable, boolean, boolean, Runnable)
public abstract void refreshIoFiles(java.lang.Iterable<? extends java.io.File> files, boolean async, boolean recursive, java.lang.Runnable onFinish)
VfsUtil.markDirtyAndRefresh(boolean, boolean, boolean, File...)
instead.public abstract void refreshFiles(java.lang.Iterable<? extends VirtualFile> files)
files
- files to refresh.public abstract void refreshFiles(java.lang.Iterable<? extends VirtualFile> files, boolean async, boolean recursive, java.lang.Runnable onFinish)
public LocalFileSystem.WatchRequest addRootToWatch(java.lang.String rootPath, boolean watchRecursively)
public java.util.Set<LocalFileSystem.WatchRequest> addRootsToWatch(java.util.Collection<java.lang.String> rootPaths, boolean watchRecursively)
public void removeWatchedRoot(LocalFileSystem.WatchRequest watchRequest)
public void removeWatchedRoots(java.util.Collection<LocalFileSystem.WatchRequest> watchRequests)
public LocalFileSystem.WatchRequest replaceWatchedRoot(LocalFileSystem.WatchRequest watchRequest, java.lang.String rootPath, boolean watchRecursively)
public abstract java.util.Set<LocalFileSystem.WatchRequest> replaceWatchedRoots(java.util.Collection<LocalFileSystem.WatchRequest> watchRequests, java.util.Collection<java.lang.String> recursiveRoots, java.util.Collection<java.lang.String> flatRoots)
public abstract void registerAuxiliaryFileOperationsHandler(LocalFileOperationsHandler handler)
handler
- the handler instance.public abstract void unregisterAuxiliaryFileOperationsHandler(LocalFileOperationsHandler handler)
handler
- the handler instance.