Skip to content

Commit

Permalink
Fix 'a' particle may renamed accidentally by path picker
Browse files Browse the repository at this point in the history
  • Loading branch information
nattadasu committed Dec 9, 2024
1 parent 3243a97 commit 6863cf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/filepath_posix.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"$mntp/Music",
"$mntp/Videos",
"$mntp/Games",
"$mntp/Books"
].collect { it as File }.sort { a, b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()
"$mntp/Books",
].collect { it as File }.sort { first, second -> first.exists() <=> second.exists() ?: first.diskSpace <=> second.diskSpace }.last()
def final_ = override ? override : guess
"$final_/"
}
4 changes: 2 additions & 2 deletions modules/filepath_windows.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"E:/",
"F:/",
"G:/",
"H:/"
].collect { it as File }.sort { a, b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()
"H:/",
].collect { it as File }.sort { first, second -> first.exists() <=> second.exists() ?: first.diskSpace <=> second.diskSpace }.last()
def final_ = override ? override : guess
"$final_/"
}

0 comments on commit 6863cf4

Please sign in to comment.