This function will get all the files path (including filename) recursively, given root folder. Parameters ---------- urls : str URL to scan for information. listfile: str Path of file which contains urls seperated by newline.
(urls, listfile)
| 87 | |
| 88 | |
| 89 | def argerror(urls, listfile): |
| 90 | """ |
| 91 | |
| 92 | This function will get all the files path (including filename) recursively, given root folder. |
| 93 | |
| 94 | Parameters |
| 95 | ---------- |
| 96 | urls : str |
| 97 | URL to scan for information. |
| 98 | listfile: str |
| 99 | Path of file which contains urls seperated by newline. |
| 100 | """ |
| 101 | if (urls is None and listfile is None) or (urls is not None and listfile is not None): |
| 102 | print("Atmost one of -u/--url or -l/--listfile or -f/--folder argument is required. Exiting...") |
| 103 | sys.exit(1) |
| 104 | else: |
| 105 | pass |
| 106 | |
| 107 | |
| 108 | def gitArgError(gitToken, isGit): |