1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var path = require("path");
|
4 |
|
5 |
|
6 |
|
7 | function isDotDirectory(filepath) {
|
8 | return path.basename(filepath).startsWith('.');
|
9 | }
|
10 | exports.isDotDirectory = isDotDirectory;
|
11 |
|
12 |
|
13 |
|
14 | function getDepth(filepath) {
|
15 | return filepath.split('/').length;
|
16 | }
|
17 | exports.getDepth = getDepth;
|
18 |
|
19 |
|
20 |
|
21 | function resolve(from, to) {
|
22 | return path.resolve(from, to);
|
23 | }
|
24 | exports.resolve = resolve;
|
25 |
|
26 |
|
27 |
|
28 | function normalize(filepath) {
|
29 | return filepath.replace(/\\/g, '/');
|
30 | }
|
31 | exports.normalize = normalize;
|