define a string as @type {String}

Hi, another example

I have this piece of code:

	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?

ah, I came across, that

plugins.file.convertStringToJSFile 

is not there anymore in the plugin!
It’s now:

plugins.file.convertToJSFile

With this code it goes oke!

Didn’t you get a deprecation warning on .convertStringToJSFile()?

Paul