Directory checksum using python?

So, I'm in the middle of developing a web based file system abstraction layer. The same as in the file browser, except that it has additional features such as fancy permissions, etc.

I would like users to be somehow notified of directory changes. So, for example, when someone uploads a new file via FTP, some users should receive the correct message. It is not necessary that the message be more detailed, I do not need to show the exact resource. The name of the parent directory should be sufficient.

Which approach would you recommend?

+3
source share
3 answers

Linux, inotify

FTP, , , - ProFTPD, "" .

+2

: / ?

- (.. HTTP POST FTP), . , , .

+1

/ (, os.stat()).

, , (, ), .

At least it works on the file systems I'm working on (ufs, ext3). I'm not sure if all file systems do it this way.

0
source

Source: https://habr.com/ru/post/1704808/


All Articles