Reputation
566
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 17
Impact
~30k people reached

  • 0 posts edited
  • 1 helpful flag
  • 31 votes cast
Jun
2
awarded  Popular Question
May
1
comment How to distinguish whether a MS Word file is being saved or deleted? (“Save” deletes then re-creates)
@DocBrown: My clients' files are 90% MS Word, and they only care about history for MS Word files. So while I understand that the same problem can arise with other applications, my question really is about MS Word files :-)
May
1
comment How to distinguish whether a MS Word file is being saved or deleted? (“Save” deletes then re-creates)
I have proofread the specification several times and I am pretty sure there is no deleted state. Searching for "deleted" in the specification does not lead to any information about that "deleted state", would you mind telling where you have seen it? Maybe what you have seen is deleteType, which is only a way to delete a type, not a type that refers to deleted objects. Cheers!
May
1
comment How to distinguish whether a MS Word file is being saved or deleted? (“Save” deletes then re-creates)
Sorry I still don't understand. How can you rename to Example.doc without deleting Example.doc first? Or does the atomic transaction actually include both A) Delete Example.doc B) Rename ~wrdxxxx.tmp to Example.doc? I am an extremely optimistic guy, and I believe I can at least try to pressure Microsoft into making their product better :-)
May
1
comment How to distinguish whether a MS Word file is being saved or deleted? (“Save” deletes then re-creates)
I am not sure to understand your steps with atomic rename. In your step 2, I guess the rename will fail, because Example.doc still exists, right? If there is a step 0, could you please add it, or add more detail about what exactly happens to each file when? Thanks a lot!
May
1
comment How to distinguish whether a MS Word file is being saved or deleted? (“Save” deletes then re-creates)
@rwong: Every time FileSystemWatcher notifies me, I check/sync the whole thing (all folders/files). I also run a sync at startup and every N minutes. Do you mean there is a more reliable way?
May
1
comment How to distinguish whether a MS Word file is being saved or deleted? (“Save” deletes then re-creates)
When a file is deleted, it must be seen as deleted by other users of the server, and obviously many people use the server, not just my tool. Details: The server can be any CMIS-compliant server, I don't have the choice of protocol, I edited my question to reflect that.
May
1
revised How to distinguish whether a MS Word file is being saved or deleted? (“Save” deletes then re-creates)
added 131 characters in body
May
1
comment How to distinguish whether a MS Word file is being saved or deleted? (“Save” deletes then re-creates)
@DocBrown: Sync might happen at anytime. It happens at regular interval, AND is also triggered by a FileSystemWatcher.
Apr
30
asked How to distinguish whether a MS Word file is being saved or deleted? (“Save” deletes then re-creates)
Jan
22
awarded  Nice Answer
Nov
4
awarded  Popular Question
Sep
24
awarded  Autobiographer
Aug
24
awarded  Good Question
Jul
28
awarded  Popular Question
May
26
awarded  Citizen Patrol
May
20
answered Program license : Open-Source and commercial?
Apr
30
accepted Should I test my China-targeted website with “360 Secure Browser” (browser in China)?
Nov
20
awarded  Notable Question
Jul
30
comment How should you deal with a popular project that you no longer want to maintain?
On the contrary, Github is actually one of the best places. With Github you can create an "organization" account, and invite other developers to join it. Also, Github makes it easy to see popular forks, which is a good thing.