[geedeecee] improve handling of build-context files, and build-avoidance, and remove old code

This commit is contained in:
Adam 2022-10-22 19:51:18 +02:00
parent de24a62635
commit 657d5712f6
8 changed files with 135 additions and 196 deletions

View file

@ -80,12 +80,12 @@ fun Directory.filesChecksum(): Long = asFileTree
/** Drop the first [count] directories from the path */
fun FileCopyDetails.dropDirectories(count: Int): RelativePath =
RelativePath(true, *relativePath.segments.drop(count).toTypedArray())
fun RelativePath.dropDirectories(count: Int): RelativePath =
RelativePath(true, *segments.drop(count).toTypedArray())
/** Drop the first directory from the path */
fun FileCopyDetails.dropDirectory(): RelativePath =
fun RelativePath.dropDirectory(): RelativePath =
dropDirectories(1)