Page 1 of 1

relative the default server location?

PostPosted: Tue Oct 25, 2011 5:41 pm
by ttmgybta
convertToRemoteJSFile is described in the Wiki the following way:
JSFileconvertToRemoteJSFile(serverPath)

Returns the JSFile object of a server file, given its path (relative the default server location).
Parameters
serverPath
Returns
JSFile

Sample
var f = plugins.file.convertToRemoteJSFile('/story.txt');
if (f && f.canRead())
application.output('File can be read.');

But I couldn’t find where the "relative the default server location" path is.
Pleas describe this somewhere in the wiki and also how I might change this path.

Re: relative the default server location?

PostPosted: Wed Oct 26, 2011 6:08 pm
by david
Kind of buried. Servoy application server > Server plugins > File plugin > servoy.FileServerService.defaultFolder setting.

Picture 13.png
Picture 13.png (80.77 KiB) Viewed 2099 times