Virtual Directories Show Full Path

Please post here if you have problems in using Wing FTP Server.
Post Reply
geoffb
Posts: 4
Joined: Fri Feb 02, 2018 4:18 pm

Virtual Directories Show Full Path

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

Re: Virtual Directories Show Full Path

Post by FTP »

Yes, that's an issue really, we will fix it in the next release.
geoffb
Posts: 4
Joined: Fri Feb 02, 2018 4:18 pm

Re: Virtual Directories Show Full Path

Post 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!
geoffb
Posts: 4
Joined: Fri Feb 02, 2018 4:18 pm

Re: Virtual Directories Show Full Path

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

Re: Virtual Directories Show Full Path

Post by FTP »

Yes, the new version fixed the issue you mentioned, just upgrade to the new version.
geoffb
Posts: 4
Joined: Fri Feb 02, 2018 4:18 pm

Re: Virtual Directories Show Full Path

Post by geoffb »

Thanks!
Post Reply