Refactored get_priv_files()