Package io.codemodder

Interface CodeDirectory


public interface CodeDirectory
Holds a code directory (e.g., a repository root).
  • Method Details

    • asPath

      Path asPath()
      The filesystem directory path we are running against.
    • findFilesWithTrailingPath

      Optional<Path> findFilesWithTrailingPath(String path) throws IOException
      Find a file with the given trailing path. This is useful for situations in which you only know the last part of the path for a file within the project.
      Throws:
      IOException
    • from

      static CodeDirectory from(Path projectDir)