Skip to content

Enable to determine file edit #321

Answered by Liryna
MagaKhachatryan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @MagaKhachatryan ,

As all the activity (Create / Read / Write / SetEndOfFile) directly comes from the application manipulating the file and they are all written by different developers, there is not generic workflow on how files are edited.
Maybe a better logic would be to observe the file activity and determine that after a delay of X ms / sec of no handle with previous writes activity opened, the editor is done.

FYI Word (Office) use a tmp and source file replacement workflow when saving. If you catch this pattern, you can say when Office is done to apply the changes. I also believe it keeps a tmp file opened side to side to the original file while the user edits (need to confirm).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Liryna
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants