(path)
return folder_names
Reads the folders of a given directory, which are used to display some
        meaningful name instead of simply displaying a number.

    Args:
        path: Path to a folder with subfolders representing the subjects (persons).

    Returns:
        folder_names: The names of the folder, so you can display it in a prediction.
Reads the folders of a given directory, which are used to display some
        meaningful name instead of simply displaying a number.
Reads the folders of a given directory which are used to display some meaningful name instead of simply displaying a number .
def read_subject_names(path):
    """Reads the folders of a given directory, which are used to display some
        meaningful name instead of simply displaying a number.

    Args:
        path: Path to a folder with subfolders representing the subjects (persons).

    Returns:
        folder_names: The names of the folder, so you can display it in a prediction.
    """
    folder_names = []
    for dirname, dirnames, filenames in os.walk(path):
        for subdirname in dirnames:
            folder_names.append(subdirname)
    return folder_names
def read_subject_names ( path ) : folder_names = [ ] for dirname , dirnames , filenames in os . walk ( path ) : for subdirname in dirnames : folder_names . append ( subdirname ) return folder_names