Solved

CFtpFind::IsDirectory() for symbolic link directory

Posted on 1998-03-12
1
376 Views
Last Modified: 2013-11-19
I'm writing a FTP client program for my degree project.
This project is using VC++ 5 and MFC. I tried CFileFind::IsDirectory(), but when I past a symbolic linked directory into this function, it returns a false value instead of true. Any way to achrieve that??

thx
0
Comment
Question by:kkyuen
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1316957
The code to see if a file or directory is a directory works by looking at the flags in the WIN32_FIND_DATA. So one possibility would be to create your own IsDirectoryWithLink() and see if the dwFileAttributes have something that makes links unique so that you can use it.

I suspect the Internet find first and find next do not handle links very well, which may be a bug.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Creating Labels and Frequency list style reports in SAS code 9 98
iSeries DB2 Query 2 95
sum13 challenge 24 107
Not needed 13 113
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

821 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