Fixed a bug where images would have the wrong pathname upon being first downloaded
This commit is contained in:
4
lib.js
4
lib.js
@@ -611,8 +611,8 @@ export const downloadImage = async (url, basename, source, view) => {
|
||||
return url
|
||||
}
|
||||
|
||||
let relativePath = basename + extension
|
||||
let path = Path.join(view.path, view.imageStoreDirectory, relativePath)
|
||||
let relativePath = Path.join(view.imageStoreDirectory, basename + extension)
|
||||
let path = Path.join(view.path, relativePath)
|
||||
|
||||
const download = () => write(path, response.body)
|
||||
.then(annotate( `Downloaded ${relativePath}`))
|
||||
|
||||
Reference in New Issue
Block a user