mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
use file absolute path instead of name at file signature
This commit is contained in:
parent
6db0adced8
commit
3fdce65fe0
1 changed files with 1 additions and 1 deletions
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue