Page 1 of 1

Lua API calls fail

Posted: Sat Aug 11, 2012 9:45 am
by storm
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?

Re: Lua API calls fail

Posted: Sun Aug 12, 2012 5:53 am
by FTP
print(c_GetAppPath())

Re: Lua API calls fail

Posted: Sun Aug 12, 2012 6:29 am
by storm
Now that's embarrassing... a real blond moment there. Thanks!