💻 Desktop sync client for Nextcloud
Find a file
Olivier Goffart b1fc9b2a64 Don't reset the md5 if the mtime change locally.
Consider this case when one creates a file with an invalid filename (for
the server) in a directory in the local side.
say: foo/bar/%invalid%.txt

The following would happen:
- in the update for the local parent folder  foo/bar/, the md5 is 0
  because the mtime has changed
- During the reconcile, we try to send %invalid%, but there will be an
  error and nothing will be changed on the server, the etags stay the
  same
- We do not do any PROPFIND at the end so we do not fetch the etag
  anymore.  The md5 is still 0 and will be saved like that in the DB
- Next run, since the etags have  not changed on the server, we read
  from the DB.  But a md5 of 0 in the DB means the folder was removed on
  the server.  That would remove the local folder (BAD!)

So we load the md5 from the db even if the local mtime change.
That means we need to compare the mtime in the local case rather than
the md5 to see if something has changed.
2013-05-03 19:21:21 +02:00
build build: Add an option for clang. 2012-10-22 11:21:18 +02:00
client Revert "Don't include csync_version.h from csync.h" 2013-04-26 10:45:14 +02:00
cmake FindNeon: Work on non-xbuilds as well 2013-02-08 16:08:29 +03:00
config Allow to configure the timeout in the config 2013-02-13 18:25:28 +01:00
doc Merge remote-tracking branch 'origin/master' into dav 2012-12-03 17:32:08 +01:00
modules Revert "Don't include csync_version.h from csync.h" 2013-04-26 10:45:14 +02:00
src Don't reset the md5 if the mtime change locally. 2013-05-03 19:21:21 +02:00
tests Testfile added. 2013-04-26 17:41:55 +02:00
.gitattributes Add git metadata files 2012-10-18 13:44:28 +02:00
.gitignore updated .gitignore 2011-04-06 17:08:14 +02:00
.tag Add git metadata files 2012-10-18 13:44:28 +02:00
AUTHORS Update AUTHORS. 2012-02-22 18:27:16 +01:00
ChangeLog Add ChangeLog for 0.70.6 2013-04-11 10:56:43 +04:00
CMakeLists.txt Bump version to distinguish nightlies 2013-04-23 16:51:29 +02:00
config.h.cmake Use __mingw_asprintf if asprintf is not available. 2013-04-22 13:51:53 +02:00
config_test.h.cmake Added missing config_test.h input file. 2012-07-20 10:52:30 +02:00
ConfigureChecks.cmake Use __mingw_asprintf if asprintf is not available. 2013-04-22 13:51:53 +02:00
COPYING Add license file. 2008-02-29 17:50:52 +01:00
CPackConfig.cmake Generate csync version from CMake variables 2013-04-25 12:32:01 +02:00
CTestConfig.cmake cmake: Update ctest config. 2012-09-25 14:51:29 +02:00
CTestCustom.cmake Add a custom ctest config to ignore the jhash check. 2008-03-03 13:43:12 +01:00
DefineOptions.cmake Do not compile with iconv on windows 2012-12-07 23:12:37 +01:00
INSTALL doc: Remove all references to log4c. 2012-10-30 11:27:21 +01:00
README Update README. 2012-02-04 13:41:17 +01:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

WHAT IS CSYNC?
==============

csync is a lightweight utility to synchronize files between two directories on
a system or between multiple systems.

It synchronizes bidirectionally and allows the user to keep two copies of files
and directories in sync. csync uses widely adopted protocols, such as smb or
sftp, so that there is no need for a server component. It is a user-level
program which means you dont need to be a superuser or administrator.

CONTRIBUTIONS
=============

If you want to contribute to the development of the software then please join
the mailing list. Patches are accepted preferebly created with git and we are
always glad to receive feedback or suggestions to the address
csync-devel@csync.org.
More information on the various mailing lists can be found at
http://www.csync.org/communication/.

You can also get the sourcecode straight from the git repository - see
http://git.csync.org/

DOCUMENTATION
=============

As a user you can find a userguide which is shipped with this package or is
available at the website. For developers there is doxygen documentation and
comments in the source code itself. See

http://www.csync.org/userguide/
and
http://www.csync.org/api/