Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
eDrive
Commits
8c9d0f28
Commit
8c9d0f28
authored
Aug 19, 2019
by
vince-bourgmayer
Browse files
add filter on already store folder to prevent sync of hidden media folder
parent
2cf1ffc5
Pipeline
#20874
passed with stage
in 2 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/drive/operations/ListFileRemoteOperation.java
View file @
8c9d0f28
...
...
@@ -64,8 +64,18 @@ public class ListFileRemoteOperation extends RemoteOperation {
//Get CurrentSyncedFolder
SyncedFolder
syncedFolder
=
mSyncedFolderIterator
.
next
();
//if folder is media type() && is an hidden folder then ignore it
if
(
syncedFolder
.
isMediaType
()
&&
CommonUtils
.
getFileNameFromPath
(
syncedFolder
.
getRemoteFolder
()).
startsWith
(
"."
)){
mSyncedFolderIterator
.
remove
();
continue
;
}
//If folder isn't to be scan remotly, ignore it
if
(!
syncedFolder
.
isScanRemote
())
continue
;
if
(!
syncedFolder
.
isScanRemote
())
{
mSyncedFolderIterator
.
remove
();
continue
;
}
if
(
syncedFolder
.
getId
()
==
-
1
)
{
//persist new syncedFolder
...
...
@@ -75,6 +85,7 @@ public class ListFileRemoteOperation extends RemoteOperation {
}
else
{
mSyncedFolderIterator
.
remove
();
Log
.
w
(
TAG
,
"syncedFolder "
+
syncedFolder
.
getRemoteFolder
()+
" doesn't have a valid ID"
);
continue
;
}
}
...
...
Vincent Bourgmayer
🎼
@vincent
mentioned in commit
170744a2
·
Aug 20, 2019
mentioned in commit
170744a2
mentioned in commit 170744a29c5d21ad18fe435a2bdac44f20ca5674
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment