Class FolderDrop

java.lang.Object
io.github.jbastgen.stemma.app.git.FolderDrop

public final class FolderDrop extends Object
Decides what to do with a folder that was dropped on the library: open it when it is a git repository, make it one first when it is not. Only looks at the disk; the actual opening and git init are done by the main view.
  • Method Details

    • classify

      public static FolderDrop.Decision classify(Path dropped, Path home)
      Parameters:
      dropped - the file or folder that was dropped
      home - the user's home folder: neither a repository above it nor it itself is taken for a new project