Currently, there's no effective way to auto-identify which level of sub-directory of scanning DIR is the package folder.
Currently we assume that the directory for each package is 2 level below DIR.
For example, when we scan directory '/', the directories packages we extracted can be:
/usr/share/program1
/usr/share/program2
But, it will mis-recognized other sub-directories of other packages as packages also, such as:
Currently, there's no effective way to auto-identify which level of sub-directory of scanning
DIR
is the package folder. Currently we assume that the directory for each package is 2 level belowDIR
. For example, when we scan directory '/', the directories packages we extracted can be:But, it will mis-recognized other sub-directories of other packages as packages also, such as:
The following should be the proper extraction: