Does DepotDownloader delete files missing from filesList? #315
-
I've been experimenting with DepotDownloader, and I think (but havn't verified) that DepotDownloader deletes files that are not listed in filesList that are included on the manifest, but are not present in the filesList. Is this true? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Files are only deleted if we have a previous manifest to compare to. If a file appeared previously in an older manifest, and it would have been included in the filelist, then it will be deleted if it does not appear in the new manifest. If the file exists on disk, but it did not match the filelist, it would not be considered for deletion. |
Beta Was this translation helpful? Give feedback.
-
Does it store the old manifests in the directory specified by -dir? or is there a global cache somewhere. I'm inspecting old releases, where a file has appeared and been missing several times, presumably by error (by the developer/publisher) and had been outputting the various manifest versions to separate directories. |
Beta Was this translation helpful? Give feedback.
Files are only deleted if we have a previous manifest to compare to.
If a file appeared previously in an older manifest, and it would have been included in the filelist, then it will be deleted if it does not appear in the new manifest.
If the file exists on disk, but it did not match the filelist, it would not be considered for deletion.
https://github.com/SteamRE/DepotDownloader/blob/master/DepotDownloader/ContentDownloader.cs#L1035