mirror of
https://github.com/quinton-ashley/java2js
synced 2024-12-29 10:11:54 +01:00
14 lines
291 B
JavaScript
Executable File
14 lines
291 B
JavaScript
Executable File
jdk.imports['java.io.File'].load = async () => {
|
|
class File {
|
|
constructor(file) {
|
|
this.absPath = file;
|
|
}
|
|
getAbsolutePath() {
|
|
return this.absPath;
|
|
}
|
|
}
|
|
File.seperator = File.seperatorChar = '/';
|
|
File.pathSeparator = File.pathSeparatorChar = '/';
|
|
jdk.java.io.File = File;
|
|
};
|