20251222
This commit is contained in:
36
AdminPanel/plugins/utils/cep/cepPath.ts
Normal file
36
AdminPanel/plugins/utils/cep/cepPath.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import CSInterface, { SystemPath } from "./csinterface"
|
||||
|
||||
export class CEPPath {
|
||||
constructor() {
|
||||
|
||||
}
|
||||
|
||||
static getUserData(): string {
|
||||
const cs = new CSInterface()
|
||||
return cs.getSystemPath(SystemPath.USER_DATA)
|
||||
}
|
||||
static getCommonFiles() {
|
||||
const cs = new CSInterface()
|
||||
return cs.getSystemPath(SystemPath.COMMON_FILES)
|
||||
}
|
||||
|
||||
static getMyDocuments(): string {
|
||||
const cs = new CSInterface()
|
||||
return cs.getSystemPath(SystemPath.MY_DOCUMENTS)
|
||||
}
|
||||
|
||||
static getApplication(): string {
|
||||
const cs = new CSInterface()
|
||||
return cs.getSystemPath(SystemPath.APPLICATION)
|
||||
}
|
||||
|
||||
static getExtension(): string {
|
||||
const cs = new CSInterface()
|
||||
return cs.getSystemPath(SystemPath.EXTENSION)
|
||||
}
|
||||
|
||||
static getHostApplication(): string {
|
||||
const cs = new CSInterface()
|
||||
return cs.getSystemPath(SystemPath.HOST_APPLICATION)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user