X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/2be23eaec586972a5ff86c4f9c34d95188231821..40b5fb815613c4cf9023c9c9ad93cda0d2521f86:/src/com/owncloud/android/operations/CreateFolderOperation.java diff --git a/src/com/owncloud/android/operations/CreateFolderOperation.java b/src/com/owncloud/android/operations/CreateFolderOperation.java index a2e79d63..19e9ddc4 100644 --- a/src/com/owncloud/android/operations/CreateFolderOperation.java +++ b/src/com/owncloud/android/operations/CreateFolderOperation.java @@ -17,12 +17,15 @@ package com.owncloud.android.operations; -import com.owncloud.android.Log_OC; import com.owncloud.android.datamodel.FileDataStorageManager; import com.owncloud.android.datamodel.OCFile; -import com.owncloud.android.network.webdav.WebdavClient; -import com.owncloud.android.operations.remote.CreateRemoteFolderOperation; +import com.owncloud.android.lib.common.OwnCloudClient; +import com.owncloud.android.lib.resources.files.CreateRemoteFolderOperation; +import com.owncloud.android.lib.common.operations.OnRemoteOperationListener; +import com.owncloud.android.lib.common.operations.RemoteOperation; +import com.owncloud.android.lib.common.operations.RemoteOperationResult; import com.owncloud.android.utils.FileStorageUtils; +import com.owncloud.android.utils.Log_OC; /** @@ -43,7 +46,6 @@ public class CreateFolderOperation extends RemoteOperation implements OnRemoteOp /** * Constructor * - * @param remotePath Full path to the new directory to create in the remote server. * @param createFullPath 'True' means that all the ancestor folders should be created if don't exist yet. * @param storageManager Reference to the local database corresponding to the account where the file is contained. */ @@ -56,7 +58,7 @@ public class CreateFolderOperation extends RemoteOperation implements OnRemoteOp @Override - protected RemoteOperationResult run(WebdavClient client) { + protected RemoteOperationResult run(OwnCloudClient client) { CreateRemoteFolderOperation operation = new CreateRemoteFolderOperation(mRemotePath, mCreateFullPath); RemoteOperationResult result = operation.execute(client); @@ -83,10 +85,9 @@ public class CreateFolderOperation extends RemoteOperation implements OnRemoteOp } else { Log_OC.e(TAG, mRemotePath + "hasn't been created"); } - - } + /** * Save new directory in local database */ @@ -101,5 +102,6 @@ public class CreateFolderOperation extends RemoteOperation implements OnRemoteOp Log_OC.d(TAG, "Create directory " + mRemotePath + " in Database"); } - + + }