I have a process with an open file descriptor file. I need to determine if this file was deleted by another process (there may be a file with the same name in its place). On UNIX, I compared the indices of my file descriptor and the file path via stat, but this does not work on Win32. How can I do this in Perl?
Thanks,Peter
I may be wrong (I am not a Windows programmer), but I thought that files cannot be deleted or replaced when they open in Win32, or at least by default this is not possible.
, Windows Unix.
. , ? , - , , . , ? ? SQLite Berkley DB .
, mtime atime; , ( , , stat win32, , , ). , , , , , , , - .
Take a look at the Win32 :: ChangeNotify package to register for notification of changes to a file or directory. You can also open the file through the Win32API :: File package so that it cannot be deleted while you open it (see, for example, createFile () and OsFHandleOpen (), as well as CreateFile () documents on MSDN).
Source: https://habr.com/ru/post/1705347/More articles:Abstract Factory Pattern and Properties - c #How do you determine the Informix version for Solaris? - informixMySQL - Parallel SELECTS - Is One Client Waiting For Another? - mysqlHow to create a speed template that displays two "#" litterals at the beginning of a line? - javaGetting a local Windows user login timestamp in C # - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1705348/ddd-repository&usg=ALkJrhjc1g3MYZqIQJxG7tt7YkS2HdcB0QNegative multithreading acceleration of my program - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1705350/python-desktop-integration-drag-and-drop&usg=ALkJrhg6UR9FnsvFZVX3RA6kpmu-AsPRSwWhat is the correct way to read a MIME encoded stream? - javaReturning a host object in Rhino - javaAll Articles