mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-09 22:39:53 +00:00
Fix incorrect creation of directory while downloading.
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ func (downloader *downloaderImpl) handleTask(task *downloadTask) {
|
||||
return
|
||||
}
|
||||
|
||||
err = os.MkdirAll(filepath.Base(task.destination), 0755)
|
||||
err = os.MkdirAll(filepath.Dir(task.destination), 0755)
|
||||
if err != nil {
|
||||
task.result <- err
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user