?
Solved

CFtpFind::IsDirectory() for symbolic link directory

Posted on 1998-03-12
1
Medium Priority
?
417 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
[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
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses

743 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