| Conditions | 3 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import time |
||
| 6 | def recursive_list_files(root_dicom_path): |
||
| 7 | """ |
||
| 8 | load all the files, validate and then pass to decompress or anonimize. |
||
| 9 | :param path: |
||
| 10 | :return: |
||
| 11 | """ |
||
| 12 | global file_list |
||
| 13 | file_list = [] |
||
| 14 | |||
| 15 | for root, directories, filenames in os.walk(root_dicom_path): |
||
| 16 | #for directory in directories: |
||
| 17 | #file_list.append(os.path.join(root, directory)) |
||
| 18 | for filename in filenames: |
||
| 19 | file_list.append(os.path.join(root,filename)) |
||
| 20 | return file_list |
||
| 21 | |||
| 30 | return |