feat: 新增fs.path获取文件的目录
parent
614663cf35
commit
79845a181d
|
@ -57,7 +57,7 @@ exports.create = function (file) {
|
||||||
* @param file
|
* @param file
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
exports.canonical = function (file) {
|
exports.path = exports.canonical = function (file) {
|
||||||
// noinspection JSUnresolvedVariable
|
// noinspection JSUnresolvedVariable
|
||||||
return file.canonicalPath;
|
return file.canonicalPath;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue