X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/62c382b1dcbac51eee1efa5854f5664ef3313d1b..7a4ac199930a37c73b76e76003a86a8978b65f0b:/src/com/owncloud/android/operations/CreateShareOperation.java diff --git a/src/com/owncloud/android/operations/CreateShareOperation.java b/src/com/owncloud/android/operations/CreateShareOperation.java index 3376a9e2..7b646533 100644 --- a/src/com/owncloud/android/operations/CreateShareOperation.java +++ b/src/com/owncloud/android/operations/CreateShareOperation.java @@ -92,13 +92,11 @@ public class CreateShareOperation extends SyncOperation { OCShare share = (OCShare) result.getData().get(0); // Update DB with the response + share.setPath(mPath); if (mPath.endsWith(FileUtils.PATH_SEPARATOR)) { - share.setPath(mPath.substring(0, mPath.length()-1)); - share.setIsDirectory(true); - + share.setIsFolder(true); } else { - share.setPath(mPath); - share.setIsDirectory(false); + share.setIsFolder(false); } share.setPermissions(mPermissions);