I have a folder called “test”. I need a c++ code that helps me to print all the files from that folder. I don’t want to use inotify or ls.
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.
There is a kernel API called inotify that permits to track changes in a directory. A tutorial for inotify is available from IBM here (this could be an alternative to polling the directory for changes, as I understood you want to do…).