fix(mod_assets): Fix logging message in ensureAssetsDir to correctly state when directory is created

This commit is contained in:
2025-01-29 18:27:13 +01:00
parent 37082bd8f4
commit 709a67fe82
3 changed files with 7 additions and 2 deletions

View File

@ -8,8 +8,8 @@ export class AssetsHandler {
public async ensureAssetsDir() {
const assetsDirExists = await plugins.smartfile.fs.isDirectory(this.defaultFromDirPath);
if (!assetsDirExists) {
console.log(`creating assets directory at ${this.defaultFromDirPath}`);
await plugins.smartfile.fs.ensureDir(this.defaultFromDirPath);
console.log(`created assets directory at ${this.defaultFromDirPath}`);
}
}