|
@@ -142,6 +142,7 @@ module.exports = function(crowi) {
|
|
|
* List files in storage
|
|
* List files in storage
|
|
|
*/
|
|
*/
|
|
|
lib.listFiles = async() => {
|
|
lib.listFiles = async() => {
|
|
|
|
|
+ // `mkdir -p` to avoid ENOENT error
|
|
|
await mkdir(basePath);
|
|
await mkdir(basePath);
|
|
|
const filePaths = await readdirRecursively(basePath);
|
|
const filePaths = await readdirRecursively(basePath);
|
|
|
return Promise.all(
|
|
return Promise.all(
|