@visulima/fs
Version:
Human friendly file system utilities for Node.js
17 lines (15 loc) • 431 B
JavaScript
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
const getFileInfoType = /* @__PURE__ */ __name((fileInfo) => {
if (fileInfo.isFile()) {
return "file";
}
if (fileInfo.isDirectory()) {
return "dir";
}
if (fileInfo.isSymbolicLink()) {
return "symlink";
}
return void 0;
}, "getFileInfoType");
export { getFileInfoType as g };