2022-03-14 13:26:48 +01:00
|
|
|
import * as plugins from './smartpath.plugins.js';
|
|
|
|
import * as getMod from './smartpath.get.js';
|
2016-11-26 22:46:36 +01:00
|
|
|
|
|
|
|
export class Smartpath {
|
2018-07-21 23:26:11 +02:00
|
|
|
originalPath: string;
|
|
|
|
type: getMod.TPathType;
|
|
|
|
pathLevels: string[];
|
|
|
|
pathLevelsBackwards: string[];
|
2017-02-19 03:29:54 +01:00
|
|
|
constructor(pathArg: string) {
|
2018-07-21 23:26:11 +02:00
|
|
|
this.originalPath = pathArg;
|
|
|
|
this.type = getMod.type(this.originalPath);
|
|
|
|
this.pathLevels = getMod.pathLevels(this.originalPath);
|
|
|
|
this.pathLevelsBackwards = getMod.pathLevelsBackwards(this.originalPath);
|
2017-02-19 03:29:54 +01:00
|
|
|
}
|
2016-11-26 22:46:36 +01:00
|
|
|
}
|