diff --git a/portpeek b/portpeek index e3bf2a4..0632410 100755 --- a/portpeek +++ b/portpeek @@ -488,7 +488,8 @@ def get_recursive_info(filename): # get listing of directory filenames = os.listdir(filename) for file_name in filenames: - get_recursive_info(filename + os.path.sep + file_name) + if not file_name.startswith('.'): + get_recursive_info(filename + os.path.sep + file_name) else: get_info(filename) @@ -1330,7 +1331,8 @@ def clean_useflagsFile(filename): # get listing of directory filenames = os.listdir(filename) for file_name in filenames: - clean_useflagsFile(filename + os.path.sep + file_name) + if not file_name.startswith('.'): + clean_useflagsFile(filename + os.path.sep + file_name) return else: # go through stable array and remove line if found @@ -1469,7 +1471,8 @@ def cleanFile(filename): # get listing of directory filenames = os.listdir(filename) for file_name in filenames: - cleanFile(filename + os.path.sep + file_name) + if not file_name.startswith('.'): + cleanFile(filename + os.path.sep + file_name) return else: # go through stable array and remove line if found