Merge branch 'refactor_remote_operation_to_create_folder' into refactor_remote_operat...
authormasensio <masensio@solidgear.es>
Thu, 14 Nov 2013 16:23:25 +0000 (17:23 +0100)
committermasensio <masensio@solidgear.es>
Thu, 14 Nov 2013 16:23:25 +0000 (17:23 +0100)
Conflicts:
oc_framework/src/com/owncloud/android/oc_framework/operations/remote/CreateRemoteFolderOperation.java

1  2 
oc_framework/src/com/owncloud/android/oc_framework/operations/remote/CreateRemoteFolderOperation.java

@@@ -29,17 -29,19 +29,19 @@@ public class CreateRemoteFolderOperatio
      private static final int CONNECTION_TIMEOUT = 5000;
      
  
-     
+     protected String mFolderName;
      protected String mRemotePath;
      protected boolean mCreateFullPath;
      
      /**
       * Constructor
       * 
+      * @param folderName                      Name of new directory
       * @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.
       */
-     public CreateRemoteFolderOperation(String remotePath, boolean createFullPath) {
+     public CreateRemoteFolderOperation(String folderName, String remotePath, boolean createFullPath) {
+       mFolderName = folderName;
          mRemotePath = remotePath;
          mCreateFullPath = createFullPath;
      }
          RemoteOperationResult result = null;
          MkColMethod mkcol = null;
          
++<<<<<<< HEAD
 +        boolean noInvalidChars = FileUtils.validateName(mRemotePath, true);
++=======
+         boolean noInvalidChars = FileUtils.validateName(mFolderName);
++>>>>>>> refactor_remote_operation_to_create_folder
          if (noInvalidChars) {
                try {
                        mkcol = new MkColMethod(client.getBaseUri() + WebdavUtils.encodePath(mRemotePath));
@@@ -85,7 -87,7 +91,7 @@@
  
      
      private RemoteOperationResult createParentFolder(String parentPath, WebdavClient client) {
-         RemoteOperation operation = new CreateRemoteFolderOperation(  parentPath,
+         RemoteOperation operation = new CreateRemoteFolderOperation("", parentPath,
                                                                  mCreateFullPath);
          return operation.execute(client);
      }