Last active
August 29, 2015 14:13
-
-
Save wegrata/88c054e64e72b020626c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import walk | |
from os.path import join | |
from sys import argv | |
from pprint import pprint | |
def collect_paths(path): | |
file_paths = [] | |
for root, dirs, files in walk(path, topdown=False): | |
for f in files: | |
file_paths.append(join(root, f)) | |
return set(file_paths) | |
path_one = collect_paths(argv[1]) | |
path_two = collect_paths(argv[2]) | |
pprint(path_one.difference(path_two)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment