c++ - Check directory's sharing mode in windows -
my question seems simple, google silent. i'm banned may be?:)
so question can check there blocked deleting file in directory or it's subdirectories before delete it? there simple way it?
no, there isn't.
and if there was, wouldn't work. consider sequence of events:
- you perform check , succeeds (there no blocked files).
- another process receives cpu quantum , opens file without file_share_delete flag.
- your process gains cpu , proceeds delete directory -- discover can't, because there is blocked file.
Comments
Post a Comment