diff options
Diffstat (limited to 'src/diskio.c')
-rw-r--r-- | src/diskio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/diskio.c b/src/diskio.c index bab5cb8..751d684 100644 --- a/src/diskio.c +++ b/src/diskio.c @@ -402,24 +402,30 @@ static int replace_allowed_p (struct file_triplet *trp) { const char *val; if (trp->version < 102) return 1; if (directive_get_value (trp, "replace", &val)) return 1; return strcmp (val, "true") == 0; } +const char * +dir_get_path (struct spool *sp) +{ + return sp->source_dir; +} + /* Move the part FILE_ID of the triplet TRP between the directories in TRP->SPOOL. TRP->RELATIVE_DIR gives relative directory (i.e. the directory part of the file name) for backup purposes. Do nothing if dry_run_mode is set. */ int dir_move_file (struct file_triplet *trp, enum file_type file_id) { char *dst_file; int rc = 0; const struct spool *spool = trp->spool; char *dst_dir = create_directory (spool->dest_dir, trp->relative_dir); |