This commit is contained in:
Benjamin Toby
2025-07-21 13:51:59 +01:00
parent 5de4d1dc73
commit 822778d43b
39 changed files with 944 additions and 421 deletions
+28
View File
@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = fldFileToStrArr;
exports.fldFileToStr = fldFileToStr;
function fldFileToStrArr(srces) {
if (!srces)
return undefined;
let arr = [];
for (let i = 0; i < srces.length; i++) {
const src = srces[i];
const srcStr = fldFileToStr(src);
if (srcStr) {
arr.push(srcStr);
}
}
return arr;
}
function fldFileToStr(src) {
if (!src)
return undefined;
if (typeof src == "string") {
return src;
}
else if (typeof src == "object" && src.path) {
return src.path;
}
return undefined;
}