In C how do you find if a name is a dir or link? st_fstype is not vaild in stat.h
Asked by
Harry Tonny
New backup program I am writing in C. I need to know if a name like "/home/test/backup" is a link or directory or file. I tracked it down to st_fstype in stat.h, but it is invalid now. What is the current way to check for directory/
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Harry Tonny for more information if necessary.
To post a message you must log in.