Package ghidra.framework.store.local
Class LocalFilesystemTestUtils
java.lang.Object
ghidra.framework.store.local.LocalFilesystemTestUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic IndexedLocalFileSystemcreateIndexedV0Filesystem(String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching) Create empty V0 Indexed filesystem.static IndexedV1LocalFileSystemcreateIndexedV1Filesystem(String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching) Create empty mangled filesystemstatic MangledLocalFileSystemcreateMangledFilesystem(String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching) Create empty mangled filesystemstatic IndexedLocalFileSystemcreateOriginalIndexedFilesystem(String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching) Create empty original Indexed filesystem.
-
Method Details
-
createMangledFilesystem
public static MangledLocalFileSystem createMangledFilesystem(String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching) throws 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:
IOException
-
createOriginalIndexedFilesystem
public static IndexedLocalFileSystem createOriginalIndexedFilesystem(String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching) throws 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:
IOException
-
createIndexedV0Filesystem
public static IndexedLocalFileSystem createIndexedV0Filesystem(String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching) throws 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:
IOException
-
createIndexedV1Filesystem
public static IndexedV1LocalFileSystem createIndexedV1Filesystem(String rootPath, boolean isVersioned, boolean readOnly, boolean enableAsyncronousDispatching) throws 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:
IOException
-