Solved

CFtpFind::IsDirectory() for symbolic link directory

Posted on 1998-03-12
1
366 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

895 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

18 Experts available now in Live!

Get 1:1 Help Now