brackets-synapse
brackets-synapse copied to clipboard
Implement File Check
It would be great to have some kind of quick check of the files prior to the upload. That will make it easier for people
- working with other people
- working from multiple devices (desktop at office, notebook at home,...)
Since the files always get downloaded temporary on the local drive anyway, it would be not bad to have a check based on the file edit time (if this is accurate enough) to see if a file maybe has been changed in the meantime from another user/device).
This check should probably happen during the save process:
- User clicks save
- Synapse checks files
- If remote file is newer (edit time) as local file (download time)
A warning will popup (giving user opportunity to re-download file from server and re-apply new edits).
- If local file is newer (download time) as remote file (edit time) It will simply overwrite it as usual.
What do you think? Would that be possible maybe?
Btw. Great work so far :)
Hi Joe. The function, such as SQL transaction? I confused little bit. How I know the file opened by others? However that we can, if build server in the synapse. like a p2p. but I think, that is so different.
Hello,
I'm not aware about SQL Transactions actually. I think the edit/download time of a file would be enough tough? At least this shows if a file has been changed or not. And it actually doesn't matter if it has been changed by someone else or by the same user just from another device, as far as I'm concerned. What do you think?
thx I understood it.
first, I heared about the download time sometime. however I could not to reproduced that. I need more investigate to that.
Edit file by multi user, sure It is possible, but that need different means, and there is several ways.
most simple way,that need boot other server for management to the group, that will notice to the synapse some information, the user's online status, which editing to the file and etc. parhups, It is there same server of the FTP.
i.e) we must install api server to the web port for the management.
why not just checking the hash of the uploaded file ? it's can be the first step, like that, we will know if the file change between the download and the upload.
Extension awesome by the way