Skip to content

Commit

Permalink
Merge pull request #4347 from nextcloud/blacklistThumbnail
Browse files Browse the repository at this point in the history
hardcode ignore ".thumbnail"
  • Loading branch information
AndyScherzinger authored Aug 20, 2019
2 parents a03ff84 + f22fb58 commit c155edf
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.owncloud.android.lib.common.utils.Log_OC;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
Expand Down Expand Up @@ -95,11 +96,15 @@ public Set<String> getFilesForUpload(String localPath, String syncedFolderId) {
if (value == null) {
Log_OC.e(TAG, "Cannot get local path");
} else {
localPathsToUpload.add(value);
if (".thumbnail".equals(new File(value).getName())) {
Log_OC.d(TAG, "Ignoring file for upload: " + value);
} else {
localPathsToUpload.add(value);
}
}
} while (cursor.moveToNext());
}

cursor.close();
}

Expand Down

0 comments on commit c155edf

Please sign in to comment.