"""This script will compare the list of UPC's in a file with the names of folders in the top level of a root path.""" # Walk root directory from integration_scripts.file_utils import get_all_dirs_in_subdirs def main(): root = '/Volumes/ripper_feeder_staging/Suburban/unconformed' dir_list = get_all_dirs_in_subdirs(root, root_only=True) dir_list = [x.lsplit() for x in dir_list] print(dir_list) if __name__ == '__main__': main()