Solved

Differentiate between File/Directory or LINK

Posted on 1998-08-22
4
245 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
  • 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now