mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Check if the file id method exists in the vio plugin.
This commit is contained in:
parent
3950b18dc7
commit
ae94ce7430
1 changed files with 5 additions and 2 deletions
|
@ -550,9 +550,12 @@ int csync_vio_rmdir(CSYNC *ctx, const char *uri) {
|
|||
|
||||
const char *csync_vio_file_id(CSYNC *ctx, const char *path)
|
||||
{
|
||||
const char *re;
|
||||
const char *re = NULL;
|
||||
/* We always use the remote method here. */
|
||||
re = ctx->module.method->get_file_id(path);
|
||||
if(ctx->module.method &&
|
||||
VIO_METHOD_HAS_FUNC(ctx->module.method, get_file_id)) {
|
||||
re = ctx->module.method->get_file_id(path);
|
||||
}
|
||||
return re;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue