Skip to content

Instantly share code, notes, and snippets.

@ZephrFish
Created October 10, 2018 10:28
Show Gist options
  • Save ZephrFish/4c1cba232f5b9174dd6cbc2bb87c2fe5 to your computer and use it in GitHub Desktop.
Save ZephrFish/4c1cba232f5b9174dd6cbc2bb87c2fe5 to your computer and use it in GitHub Desktop.
# Dir Checker
# Prints out URLs and Paths together
import itertools
import sys
def dirprint(urls, paths):
x = open(urls).read().split("\n")
y = open(paths).read().split("\n")
for a, b in itertools.product(x, y):
print("{}/{}".format(a, b))
if __name__ == '__main__':
dirprint(sys.argv[1], sys.argv[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment