I have this piece of code:
- Code: Select all
var vFilePath = plugins.file.getHomeDirectory().getAbsolutePath() + "/.servoy/files"
if (plugins.file.convertStringToJSFile(vFilePath).exists() != true) {
plugins.file.convertStringToJSFile(vFilePath).mkdir()
}
with the warning: The function convertStringToJSFile(String) is not applicable for the arguments (JSFile)
So Servoy still thinks, that this line: var vFilePath = plugins.file.getHomeDirectory().getAbsolutePath() + "/.servoy/files" is a JSFile.
It can now, that it is a string, because, .getAbsolutePath() returns a String, right?