Instead of having a separate priority_dict, this now sorts all files to be installed into an OrderedDict which doesn't overwrite based on the destination path, but simply provides the correct order to copy paths so that higher priority files overwrite lower priority files while directories can get merged (depending on which tool is used to copy).
This introduces a slight inefficiency insofar as duplicate files will get returned twice and, without further parsing, might be copied over each other, but the installer cannot know for certain if a path is a file or a folder.
Fixes #15
Instead of having a separate
priority_dict
, this now sorts all files to be installed into anOrderedDict
which doesn't overwrite based on the destination path, but simply provides the correct order to copy paths so that higher priority files overwrite lower priority files while directories can get merged (depending on which tool is used to copy).This introduces a slight inefficiency insofar as duplicate files will get returned twice and, without further parsing, might be copied over each other, but the installer cannot know for certain if a path is a file or a folder.