Package ghidra.framework.store.local
Class LocalFilesystemTestUtils
- java.lang.Object
-
- ghidra.framework.store.local.LocalFilesystemTestUtils
-
public class LocalFilesystemTestUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IndexedLocalFileSystem
createIndexedV0Filesystem(java.lang.String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching)
Create empty V0 Indexed filesystem.static IndexedV1LocalFileSystem
createIndexedV1Filesystem(java.lang.String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching)
Create empty mangled filesystemstatic MangledLocalFileSystem
createMangledFilesystem(java.lang.String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching)
Create empty mangled filesystemstatic IndexedLocalFileSystem
createOriginalIndexedFilesystem(java.lang.String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching)
Create empty original Indexed filesystem.
-
-
-
Method Detail
-
createMangledFilesystem
public static MangledLocalFileSystem createMangledFilesystem(java.lang.String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching) throws java.io.IOException
Create empty mangled filesystem- Parameters:
rootPath
- path for root directory (must already exist).isVersioned
- if true item versioning will be enabled.readOnly
- if true modifications within this file-system will not be allowed and result in an ReadOnlyExceptionenableAsyncronousDispatching
- if true a separate dispatch thread will be used to notify listeners. If false, blocking notification will be performed.- Throws:
java.io.IOException
-
createOriginalIndexedFilesystem
public static IndexedLocalFileSystem createOriginalIndexedFilesystem(java.lang.String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching) throws java.io.IOException
Create empty original Indexed filesystem. The original index file lacked any version indicator but will be treated as a version 0 index.- Parameters:
rootPath
- path for root directory (must already exist).isVersioned
- if true item versioning will be enabled.readOnly
- if true modifications within this file-system will not be allowed and result in an ReadOnlyExceptionenableAsyncronousDispatching
- if true a separate dispatch thread will be used to notify listeners. If false, blocking notification will be performed.- Throws:
java.io.IOException
-
createIndexedV0Filesystem
public static IndexedLocalFileSystem createIndexedV0Filesystem(java.lang.String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching) throws java.io.IOException
Create empty V0 Indexed filesystem. This is an original Indexed filesystem with the addition of a version 0 indicator within the index file.- Parameters:
rootPath
- path for root directory (must already exist).isVersioned
- if true item versioning will be enabled.readOnly
- if true modifications within this file-system will not be allowed and result in an ReadOnlyExceptionenableAsyncronousDispatching
- if true a separate dispatch thread will be used to notify listeners. If false, blocking notification will be performed.- Throws:
java.io.IOException
-
createIndexedV1Filesystem
public static IndexedV1LocalFileSystem createIndexedV1Filesystem(java.lang.String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching) throws java.io.IOException
Create empty mangled filesystem- Parameters:
rootPath
- path for root directory (must already exist).isVersioned
- if true item versioning will be enabled.readOnly
- if true modifications within this file-system will not be allowed and result in an ReadOnlyExceptionenableAsyncronousDispatching
- if true a separate dispatch thread will be used to notify listeners. If false, blocking notification will be performed.- Throws:
java.io.IOException
-
-