I need a function that simply returns bool if there is an entity at the given path, no matter if file or directory. What function to use either in winapi or stl ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GetFileAttributes()will return information about a file system object which can be queried to determine if it is a file or directory and it will fail with if it does not exist.For example: