Added the new --partial-dir option.
[rsync/rsync.git] / cleanup.c
index 0316bf9..909e343 100644 (file)
--- a/cleanup.c
+++ b/cleanup.c
@@ -111,7 +111,8 @@ void _exit_cleanup(int code, const char *file, int line)
                }
        }
 
-       if (cleanup_got_literal && cleanup_fname && keep_partial) {
+       if (cleanup_got_literal && cleanup_fname && keep_partial
+           && handle_partial_dir(cleanup_new_fname, PDIR_CREATE)) {
                char *fname = cleanup_fname;
                cleanup_fname = NULL;
                if (cleanup_fd_r != -1)