Lua API calls fail

Please post here if you have problems in using Wing FTP Server.

Lua API calls fail

Postby storm » Sat Aug 11, 2012 9:45 am

Hi,
trying to get acquainted with the Lua API. It works fine as such and I can do simple print statements and use all the admin commands returned by --help.

lua>>print("Test")
Test

lua>>date
Sat Aug 11 01:52:24 2012

Also API variables work fine:

lua>> print("%ServerName %ServerVersion")
Wing FTP Server 4.0.9

But any attempt to use the API functions fails with the same basic error message:

lua>>print(c_getAppPath())
some error in [string "print(c_getAppPath())"]:1: attempt to call global 'c_getAppPath' (a nil value)!

I tried this both from the webconsole and the shell and the result is the same. Looks like those functions aren't defined. What am I missing?
storm
 
posts 6
 
joined Fri May 20, 2011 6:50 am

Re: Lua API calls fail

Postby FTP » Sun Aug 12, 2012 5:53 am

print(c_GetAppPath())
FTP
Site Admin
 
posts 1236
 
joined Tue Sep 29, 2009 6:09 am

Re: Lua API calls fail

Postby storm » Sun Aug 12, 2012 6:29 am

Now that's embarrassing... a real blond moment there. Thanks!
storm
 
posts 6
 
joined Fri May 20, 2011 6:50 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron