Page 1 of 1

Virtual Directories Show Full Path

Posted: Fri Feb 02, 2018 4:33 pm
by geoffb
Hi,
I have a 'company official' folder which contains a large number of subdirectories, and which internal users may add new folders to over time.
I don't want clients to see all these folders, so I set up an empty directory called 'null', and mapped that to a virtual company folder:
/opt/wftpserver/FTP_DATA/null/ --> /Company_Official [ permissions R L ]
I then added one subfolder:
/opt/wftpserver/FTP_DATA/Company_Official/Utils/ --> /Company_Official/Utilities [ permissions R L ]

This all seems to work correctly in the web interface.
When I access this via an SFTP client, it appears that Wing FTP is sending a full path for the second virtual folder.
For example, if I use a command line client:

Code: Select all

C:\Program Files (x86)\WinSCP>WinSCP.com
winscp> open sftp.company.com
Searching for host...
Connecting to host...
Authenticating...
Username: client1
Password:
Authenticated.
Starting the session...
Session started.
Active session: [1] sftp.company.com
winscp> ls
drwxr-xr-x   2 root     root          4096 Feb  2 11:03:33 2018 /Company_Official
D---------   0                           0              ..
winscp> cd /Company_Official
/Company_Official
winscp> ls
drwxr-xr-x  23 root     root          4096 Sep 27 17:08:08 2016 /Company_Official/Utilities
D---------   0                           0              ..
winscp>
Note that the directory listing doesn't show the correct folder name 'Utilities', it instead shows '/Company_Official/Utilities'.
How do I set this up so that it is less confusing for users? Normal directories show correctly, it just seems to be virtual mappings which are the problem.

Re: Virtual Directories Show Full Path

Posted: Sun Feb 04, 2018 7:38 am
by FTP
Yes, that's an issue really, we will fix it in the next release.

Re: Virtual Directories Show Full Path

Posted: Mon Feb 05, 2018 1:58 pm
by geoffb
Thanks - let me know if I can provide any other info to help highlight the issue, and we'll look forward to the fix!

Re: Virtual Directories Show Full Path

Posted: Mon Feb 05, 2018 2:27 pm
by geoffb
Actually, I see a release from yesterday, 5.06, does this contain the fix? It has one item which looks similar:
Fixed a bug - SFTP server returns the incorrect file/folder names for the virtual folder which is placed under the subfolder
Note that we're on Linux, not sure if that makes a difference.

Re: Virtual Directories Show Full Path

Posted: Mon Feb 05, 2018 3:23 pm
by FTP
Yes, the new version fixed the issue you mentioned, just upgrade to the new version.

Re: Virtual Directories Show Full Path

Posted: Mon Feb 05, 2018 5:01 pm
by geoffb
Thanks!