How to determine files and directories in parent/other directories
问题 I found the answer to another question here to be very helpful. There seems to be a limitation of the sys/stat.h library as when I tried to look in other directories everything was seen as a directory. I was wondering if anyone knew of another system function or why it sees anything outside the current working directory as only a directory. I appreciate any help anyone has to offer as this is perplexing me and various searches have turned up no help. The code I made to test this is: #include