1
0
mirror of https://github.com/quinton-ashley/java2js synced 2024-12-29 10:11:54 +01:00
java2js/jre/java/io/File.js
Quinton Ashley fcf49e5a8d 1.0.1
2021-09-23 01:41:44 -05:00

15 lines
285 B
JavaScript
Executable File

jre.imports['java.io.File'].load = () => {
class File {
constructor(file) {
this.absPath = file;
}
getAbsolutePath() {
return this.absPath;
}
}
File.seperator = File.seperatorChar = '/';
File.pathSeparator = File.pathSeparatorChar = '/';
jre.java.io.File = File;
}