DirectorySave: save the mtime only if it is known
This commit is contained in:
parent
3f4c283203
commit
55cd5a9a78
@ -43,8 +43,9 @@ void
|
||||
directory_save(FILE *fp, const Directory &directory)
|
||||
{
|
||||
if (!directory.IsRoot()) {
|
||||
fprintf(fp, DIRECTORY_MTIME "%lu\n",
|
||||
(unsigned long)directory.mtime);
|
||||
if (directory.mtime != 0)
|
||||
fprintf(fp, DIRECTORY_MTIME "%lu\n",
|
||||
(unsigned long)directory.mtime);
|
||||
|
||||
fprintf(fp, "%s%s\n", DIRECTORY_BEGIN, directory.GetPath());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user