Lua API calls fail

Please post here if you have problems in using Wing FTP Server.
Post Reply
storm
Posts: 6
Joined: Fri May 20, 2011 6:50 am

Lua API calls fail

Post 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?
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Lua API calls fail

Post by FTP »

print(c_GetAppPath())
storm
Posts: 6
Joined: Fri May 20, 2011 6:50 am

Re: Lua API calls fail

Post by storm »

Now that's embarrassing... a real blond moment there. Thanks!
Post Reply