changeset 27 | 301d738b1181 |
parent 24 | 001f52cd057e |
child 28 | 70b6c13d084f |
26:81d6679d50d0 | 27:301d738b1181 |
---|---|
25 |
25 |
26 from lib import folder, shorturl |
26 from lib import folder, shorturl |
27 |
27 |
28 def main (dir='.', targets=()) : |
28 def main (dir='.', targets=()) : |
29 root_filter = {} |
29 root_filter = {} |
30 |
30 |
31 for target in targets : |
31 for target in targets : |
32 f = root_filter |
32 f = root_filter |
33 for path_part in target.split('/') : |
33 for path_part in target.split('/') : |
34 if path_part : |
34 if path_part : |
35 if path_part not in f : |
35 if path_part not in f : |