Rebuilding Downloader

This commit is contained in:
Pupil
2020-01-29 15:46:23 +09:00
parent 8a9ab6b36c
commit 9d80857a38
6 changed files with 237 additions and 89 deletions

View File

@@ -62,4 +62,6 @@ fun URL.download(to: File, onDownloadProgress: ((Long, Long) -> Unit)? = null) {
}
}
}
}
fun File.isParentOf(file: File) = file.absolutePath.startsWith(this.absolutePath)