Skip to content

Commit

Permalink
Merge pull request #32 from ChenCMD/ChenCMD/issue31
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenCMD authored Nov 20, 2023
2 parents 1462dbd + 87c7401 commit 8e65e5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import typings.spgodingDatapackLanguageServer.libServicesCommonMod as DLSCommon

object Datapack {
def findDatapackRoots[F[_]: Async](dir: Path, maxDepth: Int): F[List[URI]] = for {
rootCandidatePaths <- FSAsync.foreachDirRec(dir, dir, _ => true, maxDepth)(_.abs.pure[F])
rootCandidatePaths <- FSAsync.foreachDirRec(dir, dir, _ => true, maxDepth)(_.abs.pure[F]).map(x => dir :: x)
rootPaths <- rootCandidatePaths.filterA { p =>
for {
a <- FSAsync.pathAccessible(Path.join(p, "data"))
Expand Down

0 comments on commit 8e65e5e

Please sign in to comment.