MistyD
MistyD

Reputation: 17233

How to get a callback if a file is created in a specific directory on linux

I wanted to know if there was a way for me to get a callback anytime a file was created in a specific directory in my c++ application.

Upvotes: 0

Views: 374

Answers (1)

rep_movsd
rep_movsd

Reputation: 6895

You need to use the inotify API

http://man7.org/linux/man-pages/man7/inotify.7.html

Upvotes: 1

Related Questions