Hi! I want to write extension for firefox with kot...
# announcements
j
Hi! I want to write extension for firefox with kotlinjs and java. I try to open file and rename file name using java.io.File.Is it possible?
d
You can't use Java libraries when compiling to Javascript.
a
You won't be able to use java.io.File in Kotlin/JS. You will have to use proper JavaScript API: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Working_with_files
But you are able to use java.io.File in Kotlin/JVM. You've mentioned you are going to use Java. If you are going to use it on JVM - no problem, go ahead.
j
ok thanks
g