Package ghidra.framework.data

# Class RootGhidraFolderData

java.lang.Object
ghidra.framework.data.RootGhidraFolderData

public class RootGhidraFolderData extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected LocalFileSystem`
  `fileSystem`
  `protected FileSystem`
  `versionedFileSystem`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `containsFile(String fileName)`
  Check for existence of file.
  `boolean`
  `mustVisit(String folderPathname)`
  Determine if the specified folder path must be visited due to possible link references to the folder or one of its children.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### fileSystem

    protected LocalFileSystem fileSystem

  - ### versionedFileSystem

    protected FileSystem versionedFileSystem

- ## Method Details

  - ### mustVisit

    public boolean mustVisit(String folderPathname)
    Determine if the specified folder path must be visited due to possible link references to the folder or one of its children.
    Parameters:
      `folderPathname` - folder pathname (not ending with '/')
    Returns:
      true if folder should be visited to ensure that changes are properly tracked with proper change notifications sent.

  - ### containsFile

    public boolean containsFile(String fileName) throws IOException
    Check for existence of file. If folder previously visited, rely on fileDataCache
    Parameters:
      `fileName` - the name of the file to look for
    Returns:
      true if this folder contains the fileName, else false
    Throws:
      `IOException` - if an IO error occurs while checking for file existance

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`