mirror of
https://github.com/catdad-experiments/heic-convert
synced 2024-11-22 01:50:55 +00:00
if an image already exists, assume it's okay
This commit is contained in:
parent
a02f68a51b
commit
64f4e6cfab
@ -32,6 +32,11 @@ const images = [{
|
||||
|
||||
(async () => {
|
||||
for (let image of images) {
|
||||
// we won't assume malicious intent... if the images exist, don't bother fetching them
|
||||
if (await fs.exists(image.path)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const { url, name } = image;
|
||||
const res = await fetch(url);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user