Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/csync
AgeCommit message (Collapse)Author
2021-10-28Skip sync exclude file from list of exclude files if it doesn't exist.Camila
The file might not exist anymore because the user deleted it by hand or the folder where it was located got unchecked in the selective sync view. It is a fix for #2632. Signed-off-by: Camila <hello@camila.codes>
2021-10-14Add .sync-exclude.lst to exclude filesFelix Weilbach
Previously the .sync-exclude.lst file of the sync root directory was not added to the exclude files, because the current logic did only recognize .sync-exclude.lst files when their containing directory was discovered during the discovery phase. Therefore the sync root .sync-exclude.lst file was never discovered. See also ExcludedFiles::traversalPatternMatch(). Fix: #3830, #2728 Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-10-06use alias target for internal librariesMatthieu Gallien
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2021-10-06ensure DLL are generated with branded namesMatthieu Gallien
cmake distinct runtime and library on unix dynamic shared libraries are library kind of objects on windows they are runtime kind of objects Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2021-09-29Check for argp library before depending on it.Guido Falsi
Signed-off-by: Guido Falsi <madpilot@freebsd.org>
2021-09-29Add -largp on non linux systems.Guido Falsi
Signed-off-by: Guido Falsi <madpilot@freebsd.org>
2021-09-17Fix warningsFelix Weilbach
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-09-01Use CMAKE_INSTALL_DATADIR instead of custom DATADIRNicolas Fella
CMake provides what we wan out of the box Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
2021-08-31let clang-tidy add missing override after enabling again the checkMatthieu Gallien
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2021-08-23Fix Windows long path issue introduced in ↵Hannah von Reth
dd641fae997d71c8396b77def2fa25ad96fdf47f
2021-08-23Ignore the desktop.ini file in every directory, not only in top dir. (#8299)Klaas Freitag
* Ignore the desktop.ini file in every directory, not only in top dir. See https://github.com/owncloud/client/issues/8298 for reasons. * Fix test for ignoring desktop.ini everywhere. Co-authored-by: Hannah von Reth <hannah.vonreth@owncloud.com>
2021-08-19Don't use variables for CMake target identifiersNicolas Fella
This makes the code a bit nicer to read and maybe a bit more robust. Set the relevant OUTPUT_NAME target properties to keep the ability to customize the names of the installed binaries. Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
2021-08-11Don't compare integers with different signsFelix Weilbach
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-08-11Check result of setPinState()Felix Weilbach
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-05-06Fix warning by using qsizetype instead of size_tHannah von Reth
Signed-off-by: Matthieu Gallien <matthieu_gallien@yahoo.fr>
2021-04-19Revert "Add CMake option to enable address sanitizers"Matthieu Gallien
This reverts commit 3000e2664068b2b9dbc57e3f1a53653e400593dc. This was not intended for a direct push Signed-off-by: Matthieu Gallien <matthieu_gallien@yahoo.fr>
2021-04-19Add CMake option to enable address sanitizersFelix Weilbach
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-04-15CMake: Use own SQLite3 on macOS and WindowsFelix Weilbach
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-04-07Fix review comments.allexzander
Signed-off-by: allexzander <blackslayer4@gmail.com>
2021-03-18Fix for Windows long path issue.allexzander
Signed-off-by: allexzander <blackslayer4@gmail.com>
2021-02-03Win tests compilation fix. For Windows, the build was failing because of not ↵allexzander
being able to locate #include <sqlite3.h> in tests. Signed-off-by: allexzander <blackslayer4@gmail.com>
2021-01-25Fix build against Qt 5.15.3Nicolas Fella
Use QLatin1Char to prevent build error due to stricter QT_NO_CAST_FROM_ASCII Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
2021-01-14Provide the path to the current folder to statTypeVirtualFile on unixKevin Ottens
Otherwise backends can't get to the actual file which will be needed for the XAttr backend. Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-12-15Get the excluded files test to pass again on WindowsKevin Ottens
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-12-15Please the clang-tidy overlordKevin Ottens
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-12-15Remove now unneeded cmake test and defineHannah von Reth
2020-12-15Replace custome date parser QDateTime::fromString(value, Qt::RFC2822Date)Hannah von Reth
2020-12-15Repair the Windows BuildKevin Ottens
We now enforce the use of QStringLiteral and friends in some places, but that feel through the cracks for some of the Windows specific code. Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-12-15Remove the use of goto from src/csync/csync_exclude.cppHannah von Reth
2020-12-15csync: apply strict QString handlingHannah von Reth
2020-12-15Remove more legacy C codeHannah von Reth
2020-12-15Tests: Port check_vio_ext to WindowsHannah von Reth
2020-12-15Remove custome string functionsHannah von Reth
2020-12-15Remove unused structHannah von Reth
2020-12-15Cleanup moc_csync.cpp includeHannah von Reth
2020-12-15Rename csync_instructions_e -> SyncInsturctionsHannah von Reth
2020-12-15Remove now unneede csync_instruction_strHannah von Reth
2020-12-15Make bit flags better readableHannah von Reth
2020-12-15Remove unused definesHannah von Reth
2020-12-15Use Q_ENUM_NS to pretty print csync enumsHannah von Reth
2020-12-15Vfs: Clear up relationship between _type and pin stateChristian Kamm
The pin state is a per-item attribute that has an effect on _type: AlwaysLocal dehydrated files will be marked for hydration and OnlineOnly hydrated files will be marked for dehydration. Where exactly this effect materializes depends on how the pin states are stored. If they're stored in the db (suffix) the dbEntry._type is changed during the discovery. If the pin state is stored in the filesystem, the localEntry._type must be adjusted by the plugin's stat callback. This patch makes pin states behave more consistently between plugins. Previously with suffix-vfs pin states only had an effect on new remote files. Now the effect of pinning or unpinning files or directories is as documented and similar to other plugins.
2020-12-15Windows: Forbid chars 0-31 in filenames #6987Christian Kamm
2020-12-15Discovery: Files can have dehydrate/download actionsChristian Kamm
This will be used in conjunction with vfs plugins that detect whether a file has a pending hydration/dehydration through independent means and communicate that to the discovery through local file type.
2020-12-15Build fix for mingw64 7.3 (Qt 5.12.0)Christian Kamm
2020-12-15Switch to standard opt-out BUILD_TESTING instead of opt-in UNIT_TESTINGDominik Schmidt
Compare https://cmake.org/cmake/help/v3.0/module/CTest.html Craft automatically handles BUILD_TESTING, so we don't need to handle it in our own blueprint.
2020-12-15Discovery: Handle the blacklistFiles from the server capabilitiesOlivier Goffart
Issue #434 Ideally one could add the blacklist to the exlucde reggexp, but this is simpler
2020-12-15Port the exclude test to the QTest FrameworkOlivier Goffart
This is just a port to QtTest, I did not change the layout of the test. I did search and replace to replace the assert with QCOMPARE/QVERIFY I still call setup and setup_init like before (only explicitly, now) Also ported the preformence tests to QBENCHMAK because windows don't have gettimeofday. Relates #6358
2020-12-15vfs: Ensure SyncOptions::_vfs is never nullChristian Kamm
- Create a VfsOff derived class - Make it a shared pointer shared with Folder::_vfs
2020-12-15vfs: Document ignored return value.Christian Kamm
2020-12-15Fixes after rebase to masterChristian Kamm
- use vfs suffix in ProcessDirectoryJob - fix include vfs.h - fix local vio passing vfs - fix checksum computation - vfs mode use - mingw lambda compile issue