Class LocalFilesystemTestUtils

java.lang.Object
ghidra.framework.store.local.LocalFilesystemTestUtils

public class LocalFilesystemTestUtils extends Object
  • 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 ReadOnlyException
      enableAsyncronousDispatching - 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 ReadOnlyException
      enableAsyncronousDispatching - 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 ReadOnlyException
      enableAsyncronousDispatching - 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 ReadOnlyException
      enableAsyncronousDispatching - if true a separate dispatch thread will be used to notify listeners. If false, blocking notification will be performed.
      Throws:
      IOException