Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Differentiate between File/Directory or LINK

Posted on 1998-08-22
4
Medium Priority
?
252 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 60 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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 learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

721 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