- // For a given path, requires all of the files and returns an array
- // with the results. If the directory contains any non-requireable file,
- // it will fail.
- loadFiles: function (path) {
- return new Promise(function (resolve, reject) {
- Fs.readdir(path, function (err, files) {
+ /**
+ * For a gi ven path, requires all of the files and returns an array
+ * with the results. If the directory contains any non-requireable
+ * files, it will fail.
+ *
+ * @function loadFiles
+ * @memberof Util
+ * @param {String} path the path where the files are located
+ * @return {Array} the array of all the loaded modules
+ */
+ loadFiles(path) {
+
+ return new Promise((resolve, reject) => {
+
+ Fs.readdir(path, (err, files) => {
+