| Conditions | 7 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #! python3 |
||
| 18 | def getsubs(dir): |
||
| 19 | # get all |
||
| 20 | dirs = [] |
||
| 21 | files = [] |
||
| 22 | src = [] |
||
| 23 | for dirname, dirnames, filenames in os.walk(dir): |
||
| 24 | dirs.append(dirname) |
||
| 25 | for subdirname in dirnames: |
||
| 26 | dirs.append(os.path.join(dirname, subdirname)) |
||
| 27 | for filename in filenames: |
||
| 28 | files.append(os.path.join(dirname, filename)) |
||
| 29 | for file in files: |
||
| 30 | if filterFiles(file) and (file not in src): |
||
| 31 | src.append(file) |
||
| 32 | return src |
||
| 33 | |||
| 71 |