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
Solved

Differentiate between File/Directory or LINK

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

791 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