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
33170389
Commit
33170389
authored
Aug 20, 2019
by
vince-bourgmayer
Browse files
cherry pick
95579189
parent
4ef7c845
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/drive/operations/ListFileRemoteOperation.java
View file @
33170389
...
...
@@ -21,6 +21,8 @@ import java.util.List;
import
java.util.ListIterator
;
import
foundation.e.drive.database.DbHelper
;
import
foundation.e.drive.models.SyncedFolder
;
import
foundation.e.drive.utils.CommonUtils
;
import
static
org
.
apache
.
jackrabbit
.
webdav
.
DavConstants
.
DEPTH_1
;
/**
...
...
@@ -88,6 +90,12 @@ public class ListFileRemoteOperation extends RemoteOperation {
for
(
int
i
=
-
1
,
remoteFilesSize
=
remoteFiles
.
size
();
++
i
<
remoteFilesSize
;
){
RemoteFile
remoteFile
=
(
RemoteFile
)
remoteFiles
.
get
(
i
);
//if remoteFile is in a "media" folder and its name start with "."
// then ignore it
if
(
syncedFolder
.
isMediaType
()
&&
CommonUtils
.
getFileNameFromPath
(
remoteFile
.
getRemotePath
()
).
startsWith
(
"."
)
){
continue
;
}
if
(
remoteFile
.
getMimeType
().
equals
(
"DIR"
)
)
{
String
suffixPath
=
remoteFile
.
getRemotePath
().
substring
(
syncedFolder
.
getRemoteFolder
().
length
()
);
...
...
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