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
Solved

CFtpFind::IsDirectory() for symbolic link directory

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 35
Expand to include initial dialog with two choices. 9 80
string initialization in java 11 115
Work with App store 7 68
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

856 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