Solved

CFtpFind::IsDirectory() for symbolic link directory

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 47
repeateFront java challenge 31 87
ShiftLeft challenge 21 66
wordcount challenge 11 76
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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…
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 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

22 Experts available now in Live!

Get 1:1 Help Now