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
998e31e0
Commit
998e31e0
authored
Aug 20, 2019
by
vince-bourgmayer
Browse files
make this exact copy of oreo version
parent
940af700
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/drive/operations/ListFileRemoteOperation.java
View file @
998e31e0
...
...
@@ -64,6 +64,7 @@ public class ListFileRemoteOperation extends RemoteOperation {
//Get CurrentSyncedFolder
SyncedFolder
syncedFolder
=
mSyncedFolderIterator
.
next
();
//If folder isn't to be scan remotly, ignore it
if
(!
syncedFolder
.
isScanRemote
())
continue
;
if
(
syncedFolder
.
getId
()
==
-
1
)
{
...
...
@@ -76,6 +77,7 @@ public class ListFileRemoteOperation extends RemoteOperation {
Log
.
w
(
TAG
,
"syncedFolder "
+
syncedFolder
.
getRemoteFolder
()+
" doesn't have a valid ID"
);
}
}
//Create ReadRemoteOperation
LightReadFolderRemoteOperation
operation
=
new
LightReadFolderRemoteOperation
(
syncedFolder
.
getRemoteFolder
(),
DEPTH_1
,
false
);
RemoteOperationResult
result
=
operation
.
execute
(
ownCloudClient
);
...
...
@@ -120,7 +122,6 @@ public class ListFileRemoteOperation extends RemoteOperation {
syncedFolder
.
setLastEtag
(
directory
.
getEtag
()).
setToSync
(
true
);
atLeastOneDirAsChanged
=
true
;
}
}
//Last else correspond to error 404 at LightReadFolderRemoteOperation (see below)
}
else
{
//Result isn't a success
if
(
result
.
getHttpCode
()
==
404
){
//File not found
...
...
@@ -142,6 +143,7 @@ public class ListFileRemoteOperation extends RemoteOperation {
}
Log
.
w
(
TAG
,
"LightReadFolderRemoteOperation failed : http "
+
result
.
getHttpCode
()
+
", "
+
result
.
getLogMessage
()+
" => Ignored"
);
}
}
//End of loop
finalResult
=
new
RemoteOperationResult
(
RemoteOperationResult
.
ResultCode
.
OK
);
...
...
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