+ boolean result = false;\r
+ int status = -1;\r
+ try {\r
+ MkColMethod mkcol = new MkColMethod(mUri.toString() + WebdavUtils.encodePath(path));\r
+ Log.d(TAG, "Creating directory " + path);\r
+ status = executeMethod(mkcol);\r
+ Log.d(TAG, "Status returned: " + status);\r
+ result = mkcol.succeeded();\r
+ \r
+ } catch (HttpException e) {\r
+ Log.e(TAG, "HTTP exception creating directory " + path, e);\r
+\r
+ } catch (IOException e) {\r
+ Log.e(TAG, "I/O exception creating directory " + path, e);\r
+\r
+ } catch (Exception e) {\r
+ Log.e(TAG, "Unexpected exception creating directory " + path, e);\r
+ \r
+ }\r
+ if (!result && status >= 0) {\r
+ Log.e(TAG, "Creation of directory " + path + " failed with HTTP status " + status);\r
+ }\r
+ return result;\r
+ }\r
+ \r
+ \r
+ /**\r
+ * Check if a file exists in the OC server\r
+ * \r
+ * @return 'Boolean.TRUE' if the file exists; 'Boolean.FALSE' it doesn't exist; NULL if couldn't be checked\r
+ */\r
+ public Boolean existsFile(String path) {\r