Closed knocte closed 10 years ago
I think its a good idea.
the latest version completely ignores files that have characters that may be problematic on Windows, so those files aren't even synced anymore. it's a bit lame, but i don't know of a better solution.
Well, that's better than before. If we could have a conflict or warning highlighted by the SparkleShare UI, then I think we can close this.
we can list the ignored files with git ls-files --others -i --exclude-from=.git/info/exclude
. a notification would be good, but how do we find out which files are relevant? we don't want to list them every time a local change happens.
how do we find out which files are relevant? we don't want to list them every time a local change happens
If that change is in a relevant file, yes?
i've created a wiki page on this: https://github.com/hbons/SparkleShare/wiki/File-names-and-types
Cool.
BTW, regarding this:
files or folders with the following characters in their name won't be synced to avoid problems
Did you add at least a warning log when this happens?
From the File-names-and-types wikipage: SparkleShare also doesn't sync many common temporary or swap files. It won't sync hidden version control system directories either.
The temporary files (~$ ) while opening files on Windows are synced though. Can they be also excluded?
@Nukama what's the pattern that needs to be excluded exactly? is there some documentation available on this?
The first two characters of a filename are replaced by: ~$
And I have not found documentation. I think it comes from opening OpenOffice files. Maybe MS Office? LibreOffice is only creating the lock file (.~lock.example.odt#) which is currently excluded in SparkleShare.
commit Author: user mail@example.com Date: Wed Sep 24 00:02:50 2014 +0000
- <E2><80><98>example/~$ample.odt<E2><80>
commit Author: user mail@example.com Date: Wed Sep 24 00:02:18 2014 +0000
+ <E2><80><98>example/~$ample.odt<E2><80>
@Nukama
Here's the Knowledgebase article on that (I'm impressed by MS's documentation here): http://support2.microsoft.com/kb/211632
Owner File (Same Directory as Source File) This file name extension begins with a tilde (~) that is followed by a dollar sign ($) that is followed by the remainder of the original file name. This temporary file holds the logon name of person who opens the file. This temporary file is called the "owner file."
It's basically a lock file that provides some meta information.
Steps to reproduce:
Current results: Windows shows "there was a conflict", and file is removed from the git repository.
Expected results: SparkleShare should show a visual UI warning in the Linux OS as soon as the file is created, but it should sync it. When windows OS tries to pull it, it should not pull the file but show a warning as well. But most importantly: it should not delete the file.