DirectorySave: use Directory::GetName()
This commit is contained in:
parent
c0421a57da
commit
7142c81c05
@ -52,10 +52,7 @@ directory_save(FILE *fp, const Directory &directory)
|
|||||||
|
|
||||||
Directory *cur;
|
Directory *cur;
|
||||||
directory_for_each_child(cur, directory) {
|
directory_for_each_child(cur, directory) {
|
||||||
char *base = g_path_get_basename(cur->path);
|
fprintf(fp, DIRECTORY_DIR "%s\n", cur->GetName());
|
||||||
|
|
||||||
fprintf(fp, DIRECTORY_DIR "%s\n", base);
|
|
||||||
g_free(base);
|
|
||||||
|
|
||||||
directory_save(fp, *cur);
|
directory_save(fp, *cur);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user