Last active
December 20, 2015 11:49
-
-
Save rickcnagy/6126241 to your computer and use it in GitHub Desktop.
Quick command line Python script to check which files/folders are missing from a copied directory
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
import os | |
original_path = raw_input("Full path of original folder: ") | |
duplicate_path = raw_input("Full path of folder that files were copied to: ") | |
for _, __, file in os.walk(original_path): | |
original = file | |
for _, __, file in os.walk(duplicate_path): | |
duplicate = file | |
print "The following files/folders are missing from {}:".format(duplicate_path) | |
for file in original: | |
if file not in duplicate: | |
print file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment