Solved

Differentiate between File/Directory or LINK

Posted on 1998-08-22
4
250 Views
Last Modified: 2008-02-01
Using WinInet (CFtpConnection class etc) how do you differentiate between a File/Directory and a link to a file/directory from a UNIX FTP server.  Linked Directories show up as files when I use Wininet.  When I try to go into the directory, I cannot.

Is there a special option to use within the CInternetSession or CFtpConnection class, or does one have the text the CFileFind class return parameters?

Regards
0
Comment
Question by:ossentoo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:ossentoo
ID: 1170966
Edited text of question
0
 
LVL 2

Accepted Solution

by:
JYoungman earned 30 total points
ID: 1170967
Issue the LIST command (this is normally invoked by the "dir" command in normal clients).   If the first character of the line is "l", then that entry is a symbolic link.


0
 

Author Comment

by:ossentoo
ID: 1170968
Which command is the list command part of?  Is it a member of WinInet?

If not, how do I perform a list command?  
0
 
LVL 2

Expert Comment

by:JYoungman
ID: 1170969
Never used WinInet.   LIST is a command which is part of the FTP protocol.   It's essential but I don't know how WinInet is implemented so I can't tell if you can use it directly.

0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question