mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Add debug message if mkdirs fails.
This commit is contained in:
parent
a46a39ce0e
commit
49e10b7e6a
@ -124,7 +124,10 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
|
||||
|
||||
/* create directories if needed */
|
||||
ctx->replica = drep;
|
||||
csync_vio_mkdirs(ctx, tdir, 0755);
|
||||
|
||||
if (csync_vio_mkdirs(ctx, tdir, 0755) < 0) {
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_WARN, "dir: %s, command: mkdirs, error: %s", tdir, strerror(errno));
|
||||
}
|
||||
|
||||
/* Open the destination file */
|
||||
ctx->replica = drep;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user