💖 semi-animated directory logs

This commit is contained in:
ful1e5 2020-11-12 17:05:58 +05:30
parent 18e2b84892
commit 9f08ae3ff5

View file

@ -20,10 +20,10 @@ export default class SvgDirectoryParser {
const cursorDir = path.resolve(this.svgDir, "static");
if (!fs.existsSync(cursorDir)) {
console.log("Considering as semi-animated theme");
console.log(`Considering ${cursorDir} as semi-animated theme`);
this.semiAnimated = true;
}
return [];
} else {
const staticCursors = fs
.readdirSync(cursorDir)
.map((f) => path.resolve(cursorDir, f));
@ -33,6 +33,7 @@ export default class SvgDirectoryParser {
}
return staticCursors;
}
}
/**
* Return all animated cursors absolute paths from `svgDir/animated` directory.