@@ -243,7 +243,7 @@ module.exports = (crowi) => {
/**
* List files in storage
*/
- lib.listFiles = async() => {
+ lib.listFiles = async function() {
if (!lib.getIsReadable()) {
throw new Error('AWS is not configured.');
}
@@ -187,7 +187,7 @@ module.exports = function(crowi) {
if (!this.getIsReadable()) {
throw new Error('GCS is not configured.');
@@ -128,7 +128,7 @@ module.exports = function(crowi) {
const attachmentFiles = await AttachmentFile.find();
return attachmentFiles.map(({ filename: name, length: size }) => ({
name, size,
@@ -141,7 +141,7 @@ module.exports = function(crowi) {
// `mkdir -p` to avoid ENOENT error
await mkdir(basePath);
const filePaths = await readdirRecursively(basePath);
@@ -32,7 +32,7 @@ module.exports = function(crowi) {
debug('Listing files in storage');
throw new Error('not implemented');
};