hexo/node_modules/stubborn-fs/dist/constants.js

9 lines
321 B
JavaScript
Raw Normal View History

2024-05-09 16:35:20 +08:00
/* IMPORT */
import process from 'node:process';
/* MAIN */
const IS_USER_ROOT = process.getuid ? !process.getuid() : false;
const LIMIT_FILES_DESCRIPTORS = 10000; //TODO: Fetch the real limit from the filesystem, somehow
const NOOP = () => undefined;
/* EXPORT */
export { IS_USER_ROOT, LIMIT_FILES_DESCRIPTORS, NOOP };