%Dir give different results ftp / sftp

Please post here if you have problems in using Wing FTP Server.
Post Reply
ntgdcis
Posts: 1
Joined: Wed Aug 27, 2014 7:53 am

%Dir give different results ftp / sftp

Post by ntgdcis »

Hi,
When configuring an "onfileuploaded" event for a client I found the %Dir variable returns the correct working directory for ftp sessions, but always returns "/" for sftp sessions. Is there any way of getting the directory path (but not filename) in an event related to an sftp session?

cheers,
Pete
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: %Dir give different results ftp / sftp

Post by FTP »

Maybe you need this system variable: %LastDir
Post Reply