UNPKG

1.97 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var ReadDirOptions;
4(function (ReadDirOptions) {
5 /**
6 * Bitwise option for making the return paths absolute URIs instead of being from the supplied base path
7 */
8 ReadDirOptions[ReadDirOptions["ABSOLUTE_PATHS"] = 1] = "ABSOLUTE_PATHS";
9 /**
10 * Bitwise option for making the return array sorted case insensitively
11 */
12 ReadDirOptions[ReadDirOptions["CASELESS_SORT"] = 2] = "CASELESS_SORT";
13 /**
14 * Bitwise option for making the return array sorted case sensitively
15 */
16 ReadDirOptions[ReadDirOptions["CASE_SORT"] = 4] = "CASE_SORT";
17 /**
18 * Bitwise option for making the return array sorted case sensitively
19 */
20 ReadDirOptions[ReadDirOptions["INCLUDE_DIRECTORIES"] = 8] = "INCLUDE_DIRECTORIES";
21 /**
22 * Bitwise option for preventing the automatic removal of paths that start with a dot
23 */
24 ReadDirOptions[ReadDirOptions["INCLUDE_HIDDEN"] = 16] = "INCLUDE_HIDDEN";
25 /**
26 * Bitwise option for preventing the directory reader running recursively
27 */
28 ReadDirOptions[ReadDirOptions["NON_RECURSIVE"] = 32] = "NON_RECURSIVE";
29 /**
30 * Bitwise option for preventing errors reading directories from aborting the scan whenever possible - includes
31 * incorrectly rooted relative symlinks and missing root directory.
32 */
33 ReadDirOptions[ReadDirOptions["IGNORE_ERRORS"] = 64] = "IGNORE_ERRORS";
34})(ReadDirOptions = exports.ReadDirOptions || (exports.ReadDirOptions = {}));
35exports.ABSOLUTE_PATHS = ReadDirOptions.ABSOLUTE_PATHS;
36exports.CASELESS_SORT = ReadDirOptions.CASELESS_SORT;
37exports.CASE_SORT = ReadDirOptions.CASE_SORT;
38exports.INCLUDE_DIRECTORIES = ReadDirOptions.INCLUDE_DIRECTORIES;
39exports.INCLUDE_HIDDEN = ReadDirOptions.INCLUDE_HIDDEN;
40exports.NON_RECURSIVE = ReadDirOptions.NON_RECURSIVE;
41exports.IGNORE_ERRORS = ReadDirOptions.IGNORE_ERRORS;
42//# sourceMappingURL=read-dir-options.js.map
\No newline at end of file