Answer the question
In order to leave comments, you need to log in
How to find out that there have been changes in the project (files and folders)?
It is necessary that as soon as something has changed in a certain folder, immediately execute the code.
That is, I change files in the project, add, delete folders and immediately need to change the updated.txt file, writing the update time into it.
Answer the question
In order to leave comments, you need to log in
You are advised not at all.
For such a task, you need to use FileSystemWatcher. A ready-made example for your task: www.codeproject.com/Articles/26528/C-Application-t...
в ядре linux есть подсистема inotify, которая может генерировать события связанные с файлами и каталогами.
дальше гуглите.
Проверяйте в цикле дату изменения файлов: os.Stat, os.FileInfo.
Upd. Кажется, это - то что вы ищите.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question