use file absolute path instead of name at file signature

This commit is contained in:
tibbi 2018-04-14 22:29:23 +02:00
parent 6db0adced8
commit 3fdce65fe0

View file

@ -5,7 +5,7 @@ import java.io.File
fun String.getFileSignature(): ObjectKey { fun String.getFileSignature(): ObjectKey {
val file = File(this) val file = File(this)
return ObjectKey("${file.name}${file.lastModified()}") return ObjectKey("${file.absolutePath}${file.lastModified()}")
} }
fun String.isThisOrParentIncluded(includedPaths: MutableSet<String>) = includedPaths.any { startsWith(it, true) } fun String.isThisOrParentIncluded(includedPaths: MutableSet<String>) = includedPaths.any { startsWith(it, true) }