relative the default server location?

Questions, tips and tricks and techniques for scripting in Servoy

relative the default server location?

Postby ttmgybta » Tue Oct 25, 2011 5:41 pm

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.
ttmgybta

Servoy Version: 6.0.5 - build 1230
ttmgybta
 
Posts: 163
Joined: Thu Nov 11, 2010 10:39 am
Location: Da-vos schön isch

Re: relative the default server location?

Postby david » Wed Oct 26, 2011 6:08 pm

Kind of buried. Servoy application server > Server plugins > File plugin > servoy.FileServerService.defaultFolder setting.

Picture 13.png
Picture 13.png (80.77 KiB) Viewed 2272 times
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.


Return to Methods

Who is online

Users browsing this forum: No registered users and 1 guest