13xforever / ps3-disc-dumper

A handy utility to make decrypted PS3 disc dumps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistencies in directory timestamps

NicknineTheEagle opened this issue · comments

It appears that game directories that only have other directories inside them and no files do not get their filestamps set properly (either they're skipped or something resets their timestamp to current time). Directories that have any files inside and empty directories are handled as they should be.

commented

Can you provide examples of such discs?

commented

I'll try to look at it next weekend if I'll have some time.

These directories are filtered out over here:

var deepestDirNames = new List<string>();
foreach (var dirname in dirNames)
{
var tmp = dirname + "\\";
if (deepestDirNames.Any(n => n.StartsWith(tmp)))
continue;
deepestDirNames.Add(dirname);
}
dirNames = deepestDirNames.OrderBy(n => n).ToList();

This appears to be an optimization that serves to reduce the number of folder creation calls, doesn't look like it's strictly necessary.