(downloadedFiles, urlString, targetDir, exclusions=set())
| 968 | |
| 969 | |
| 970 | def crawl(downloadedFiles, urlString, targetDir, exclusions=set()): |
| 971 | for text, subURL in getDirEntries(urlString): |
| 972 | if text not in exclusions: |
| 973 | path = os.path.join(targetDir, text) |
| 974 | if text.endswith('/'): |
| 975 | if not os.path.exists(path): |
| 976 | os.makedirs(path) |
| 977 | crawl(downloadedFiles, subURL, path, exclusions) |
| 978 | else: |
| 979 | if not os.path.exists(path) or FORCE_CLEAN: |
| 980 | scriptutil.download(text, subURL, targetDir, quiet=True, force_clean=FORCE_CLEAN) |
| 981 | downloadedFiles.append(path) |
| 982 | sys.stdout.write('.') |
| 983 | |
| 984 | |
| 985 | def make_java_config(parser): |
no test coverage detected
searching dependent graphs…