(dir, notRecursive)
| 88 | |
| 89 | |
| 90 | def get_files(dir, notRecursive): |
| 91 | # Not Recursive |
| 92 | if notRecursive: |
| 93 | for filename in os.listdir(dir): |
| 94 | filePath = os.path.join(dir, filename) |
| 95 | if os.path.isdir(filePath): |
| 96 | continue |
| 97 | yield filePath |
| 98 | # Recursive |
| 99 | else: |
| 100 | for root, directories, files in scandir.walk(dir, followlinks=False): |
| 101 | for filename in files: |
| 102 | filePath = os.path.join(root, filename) |
| 103 | yield filePath |
| 104 | |
| 105 | |
| 106 | def parse_sample_dir(dir, notRecursive=False, generateInfo=False, onlyRelevantExtensions=False): |
no outgoing calls
no test coverage detected