Applying changed Download routines
This commit is contained in:
@@ -64,4 +64,4 @@ fun URL.download(to: File, onDownloadProgress: ((Long, Long) -> Unit)? = null) {
|
||||
}
|
||||
}
|
||||
|
||||
fun File.isParentOf(file: File) = file.absolutePath.startsWith(this.absolutePath)
|
||||
fun File.isParentOf(file: File?) = file?.absolutePath?.startsWith(this.absolutePath) ?: false
|
||||
Reference in New Issue
Block a user