mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
owncloud: Add debug messages for _open.
This commit is contained in:
parent
2b15a7b663
commit
d5145e1e0a
1 changed files with 9 additions and 1 deletions
|
@ -524,11 +524,18 @@ static csync_vio_method_handle_t *_open(const char *durl,
|
|||
int put = 0;
|
||||
|
||||
(void) mode; /* unused */
|
||||
DEBUG_WEBDAV(( "############# open called!\n"));
|
||||
|
||||
/* uri = ne_path_escape(durl);
|
||||
* escaping lets the ne_request_create fail, even though its documented
|
||||
* differently :-(
|
||||
*/
|
||||
uri = durl;
|
||||
|
||||
uri = ne_path_escape(durl);
|
||||
if (uri == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
dav_connect( uri );
|
||||
|
||||
if (flags & O_WRONLY) {
|
||||
put = 1;
|
||||
|
@ -547,6 +554,7 @@ static csync_vio_method_handle_t *_open(const char *durl,
|
|||
req = ne_request_create(dav_session.ctx, "GET", uri);
|
||||
}
|
||||
|
||||
DEBUG_WEBDAV(( "open request: %p\n", req ));
|
||||
return (csync_vio_method_handle_t *) req;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue