I have a hard drive that is shared on a local network. The number of users is small, under 5. The drive is shared from Windows (Windows 11), but needs to be accessed by both macOS (Big Sur +) and Windows (Windows 10/11).
My problem is that I don't want two users to unknowingly open the same file, edit it, and then try and save their changes, overwriting one user's work. From my experimentation (with plaintext files), neither Windows nor macOS warns the user when opening a file if it is already open on a different computer. MacOS does warn before saving a file that has been changed on another computer, but Windows does not.
I'm looking to enable one of the following:
- On Windows, a warning before saving a file that the file has been changed externally since it was opened.
- Or, ideally, a warning when opening a file that that file is already open on another computer (macOS and Windows).
Can either/both of these be done? Can these be done for the entire shared drive for all files?
I'm open to solutions that involve regular settings, the command line, scripting, or even third-party software. (I'm not looking for any cloud-based solutions, as this network needs to be completely functional offline.)