quantity
quantity

Reputation: 4181

How to quickly get whether a directory has changed using C++ without a monitoring thread or process?

The change includes adding or removing files in the directory, or changes of its sub-directories. Is there any windows APIs which can get thus changes? I don't have a thread or process to monitor the file system.

Upvotes: 3

Views: 340

Answers (2)

Nick Dandoulakis
Nick Dandoulakis

Reputation: 43130

also check out this question.

Upvotes: 2

Nayruden
Nayruden

Reputation: 205

I'd try CDirectoryChangeWatcher, it wraps the windows ReadDirectoryChangesW function up so it's easier to use.

Upvotes: 1

Related Questions