diff --git a/src/casync-tool.c b/src/casync-tool.c index ec21759..56e6a56 100644 --- a/src/casync-tool.c +++ b/src/casync-tool.c @@ -1847,6 +1847,9 @@ static int list_one_file(const char *arg0, CaSync *s, bool *toplevel_shown) { (void) ca_sync_current_fat_attrs(s, &fat_attrs); fputs(empty_to_dot(escaped), stdout); + /* append a "/" to force directory entries to be treated as a Full path */ + if (S_ISDIR(mode)) + fputc('/', stdout); if (S_ISLNK(mode)) fputs(" type=link", stdout);