flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
24
BACK_BACK/node_modules/fast-glob/package/out/utils/path.js
generated
vendored
Executable file
24
BACK_BACK/node_modules/fast-glob/package/out/utils/path.js
generated
vendored
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var path = require("path");
|
||||
/**
|
||||
* Returns «true» if the last partial of the path starting with a period.
|
||||
*/
|
||||
function isDotDirectory(filepath) {
|
||||
return path.basename(filepath).startsWith('.');
|
||||
}
|
||||
exports.isDotDirectory = isDotDirectory;
|
||||
/**
|
||||
* Convert a windows-like path to a unix-style path.
|
||||
*/
|
||||
function normalize(filepath) {
|
||||
return filepath.replace(/\\/g, '/');
|
||||
}
|
||||
exports.normalize = normalize;
|
||||
/**
|
||||
* Returns normalized absolute path of provided filepath.
|
||||
*/
|
||||
function makeAbsolute(cwd, filepath) {
|
||||
return normalize(path.resolve(cwd, filepath));
|
||||
}
|
||||
exports.makeAbsolute = makeAbsolute;
|
||||
Loading…
Add table
Add a link
Reference in a new issue