ConceptCreator/app/storage/FileUtils.js
Sebastian Böckelmann b31f72475a
Some checks failed
E2E Testing / test (push) Failing after 1m31s
Introduce Project Service as interface to persistance of gamemodel
2024-03-20 09:26:52 +01:00

17 lines
510 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileUtils = void 0;
const fs = require("fs");
const path = require("node:path");
class FileUtils {
static listFilesInDirectory(directory) {
if (fs.lstatSync(directory).isDirectory()) {
return fs.readdirSync(directory).map(fileName => path.join(directory, fileName));
}
else {
return [];
}
}
}
exports.FileUtils = FileUtils;
//# sourceMappingURL=FileUtils.js.map