[Pkg-owncloud-commits] [owncloud-client] 317/498: discovery: handle dot files on server as hidden.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:02 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit da87a47eaf5ef3f5c867c3f3175a84f06f75863f
Author: Klaas Freitag <freitag at owncloud.com>
Date: Thu Jul 9 12:01:16 2015 +0200
discovery: handle dot files on server as hidden.
---
src/libsync/discoveryphase.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp
index 8048b83..6024306 100644
--- a/src/libsync/discoveryphase.cpp
+++ b/src/libsync/discoveryphase.cpp
@@ -311,6 +311,9 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file,QMap
if (!file_stat->etag || strlen(file_stat->etag) == 0) {
qDebug() << "WARNING: etag of" << file_stat->name << "is" << file_stat->etag << " This must not happen.";
}
+ if( file.startsWith(QChar('.')) ) {
+ file_stat->flags = CSYNC_VIO_FILE_FLAGS_HIDDEN;
+ }
//qDebug() << "!!!!" << file_stat << file_stat->name << file_stat->file_id << map.count();
_results.append(file_stat);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list