Skip to content

Instantly share code, notes, and snippets.

@rickcnagy
Last active December 20, 2015 11:49
Show Gist options
  • Save rickcnagy/6126241 to your computer and use it in GitHub Desktop.
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
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