I'm currently working on this.
Very interestingly, Windows actually has an "oplock" (opportunistic lock) API
that virus scanners/etc can use to access files without preventing other
programs from deleting or opening those files with desired access modes
(however, I'm not 100% sure whether that includes renaming):
https://devblogs.microsoft.com/oldnewthing/?p=4663
When a program tries to access the file it waits and whoever holds the oplock
is signalled and given a chance to clean up and let go of their handle.
So as Raymond says, any virus scanner that breaks programs by interfering with
deletion or rename is "not well-written" (i.e. buggy). That doesn't change the
fact that we need to work around their bugginess.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/36#issuecomment-569392866
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org