[geedeecee] improve handling of build-context files, and build-avoidance, and remove old code
This commit is contained in:
parent
de24a62635
commit
657d5712f6
8 changed files with 135 additions and 196 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue