Browse Source

fix: create organization path recursively if it doesn't exist

Yuki Takei 2 weeks ago
parent
commit
65baa0bdd2

+ 2 - 1
apps/app/src/features/growi-plugin/server/services/growi-plugin/growi-plugin.ts

@@ -174,7 +174,8 @@ export class GrowiPluginService implements IGrowiPluginService {
       reposName,
       reposName,
     );
     );
 
 
-    if (!fs.existsSync(organizationPath)) fs.mkdirSync(organizationPath);
+    if (!fs.existsSync(organizationPath))
+      fs.mkdirSync(organizationPath, { recursive: true });
 
 
     let plugins: IGrowiPlugin<IGrowiPluginMeta>[];
     let plugins: IGrowiPlugin<IGrowiPluginMeta>[];