|
@@ -243,7 +243,7 @@ public class OCFile implements Parcelable, Comparable<OCFile> {
|
|
|
*
|
|
|
* @return true if it is
|
|
|
*/
|
|
|
- private boolean existsOnDevice() {
|
|
|
+ public boolean existsOnDevice() {
|
|
|
if (mLocalPath != null && mLocalPath.length() > 0) {
|
|
|
File file = new File(mLocalPath);
|
|
|
return (file.exists());
|
|
@@ -510,6 +510,15 @@ public class OCFile implements Parcelable, Comparable<OCFile> {
|
|
|
return (parentPath.endsWith("/")) ? parentPath : (parentPath + "/");
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Check, if this file needs updating
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public boolean needsUpdatingWhileSaving() {
|
|
|
+ return mNeedsUpdating;
|
|
|
+ }
|
|
|
+
|
|
|
public boolean needsUpdateThumbnail() {
|
|
|
return mNeedsUpdateThumbnail;
|
|
|
}
|
|
@@ -679,7 +688,7 @@ public class OCFile implements Parcelable, Comparable<OCFile> {
|
|
|
return (permissions != null && permissions.contains(PERMISSION_SHARED_WITH_ME));
|
|
|
}
|
|
|
|
|
|
- public boolean canReshare() {
|
|
|
+ public boolean canReshare(){
|
|
|
String permissions = getPermissions();
|
|
|
return permissions != null && permissions.contains(PERMISSION_CAN_RESHARE);
|
|
|
}
|