fix(mod_assets): Fix logging message in ensureAssetsDir to correctly state when directory is created
This commit is contained in:
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user