mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-24 17:06:25 -05:00
Fixed syncing of the directory of the content file
This commit is contained in:
parent
4d09bffb94
commit
10c327a558
1 changed files with 2 additions and 2 deletions
|
|
@ -4548,9 +4548,9 @@ static void state_rename_content(struct snapraid_state* state)
|
||||||
|
|
||||||
pathcpy(dir, sizeof(dir), content->content);
|
pathcpy(dir, sizeof(dir), content->content);
|
||||||
|
|
||||||
slash = strrchr(tmp, '/');
|
slash = strrchr(dir, '/');
|
||||||
if (slash)
|
if (slash)
|
||||||
*slash = 0;
|
slash[1] = 0;
|
||||||
else
|
else
|
||||||
pathcpy(dir, sizeof(dir), ".");
|
pathcpy(dir, sizeof(dir), ".");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue