mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-27 13:40:37 -10:00
The default behavior for a FileCopier's copy is to remove all the files and directories in the destination that aren't in its registry. The remove_unaccounted argument can be passed as False to disable this behavior. This change adds another possibility, where remove_unaccounted may be a FileRegistry, in which case only the files in that registry are removed. This allows to e.g. only remove files that were copied from a previous FileCopier.copy, leaving aside files that were in the destination for some other reason.