- int status = executeMethod(mkcol);\r
- Log.d(TAG, "Status returned " + status);\r
- Log.d(TAG, "uri: " + mkcol.getURI().toString());\r
- Log.i(TAG, "Creating dir completed");\r
- } catch (final Exception e) {\r
- e.printStackTrace();\r
- return false;\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