Create folders for images
This commit is contained in:
parent
026336f24d
commit
f3ee7a4fb4
@ -181,6 +181,9 @@ final class ClassifierCreator {
|
||||
}
|
||||
|
||||
private func loadImage(cap: Int, image: Int) async -> Bool {
|
||||
guard createFolderIfMissing(imageDirectory.appendingPathComponent(String(format: "%04d", cap))) else {
|
||||
return false
|
||||
}
|
||||
let url = imageUrl(base: server.appendingPathComponent("images"), cap: cap, image: image)
|
||||
let tempFile: URL, response: URLResponse
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user