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
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import java.io.File
fun String.getFileSignature(): ObjectKey {
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) }