Skip to content

Commit

Permalink
Make existingOrParent public again
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsacha committed Jul 11, 2024
1 parent 634b22c commit 9f0bd01
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ object DirectorySelectionField {
* Find existing part of the input file path. If the input file exists return that file otherwise look for first
* existing parent
*/
//noinspection ScalaWeakerAccess
@tailrec
private def existingOrParent(file: File): File =
def existingOrParent(file: File): File =
if (file.exists()) file
else existingOrParent(file.getCanonicalFile.getParentFile)
}
Expand Down

0 comments on commit 9f0bd01

Please sign in to comment.