Skip to content

Commit

Permalink
fix: Potential EEXIST error when iOS asset catalog dir already exists (
Browse files Browse the repository at this point in the history
  • Loading branch information
robhogan authored Jun 19, 2023
1 parent 1796cdd commit b31ade1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function isCatalogAsset(asset: AssetData): boolean {
}

export function writeImageSet(imageSet: ImageSet): void {
fs.mkdirSync(imageSet.basePath);
fs.mkdirSync(imageSet.basePath, {recursive: true});

for (const file of imageSet.files) {
const dest = path.join(imageSet.basePath, file.name);
Expand Down

0 comments on commit b31ade1

Please sign in to comment.