diff --git a/server/src/workflow-management/storage.ts b/server/src/workflow-management/storage.ts index 50d8ca97..40b0bbcd 100644 --- a/server/src/workflow-management/storage.ts +++ b/server/src/workflow-management/storage.ts @@ -81,7 +81,12 @@ function promiseAllP(items: any, block: any) { return Promise.all(promises); } - +/** + * Reads all files from a directory and returns an array of their contents. + * @param dirname The path to the directory. + * @category WorkflowManagement-Storage + * @returns {Promise} + */ export const readFiles = (dirname: string): Promise => { return new Promise((resolve, reject) => { fs.readdir(dirname, function(err, filenames) {