ts-jsdk
Version:
TypeScript implementation of the Java platform
17 lines • 388 B
JavaScript
import * as fs from "fs";
import { readdirSync } from "fs";
export class JFile {
constructor(pathname) {
this.pathname = pathname;
}
getAbsolutePath() {
return process.cwd() + this.pathname;
}
exists() {
return fs.existsSync(this.pathname);
}
list() {
return readdirSync(this.pathname);
}
}
//# sourceMappingURL=JFile.js.map