def annotate(head, list):
    """Add '/' suffixes to directories."""
    for i in range(len(list)):
        if os.path.isdir(os.path.join(head, list[i])):
            list[i] = list[i] + '/'
def annotate(head, list):
    """Add '/' suffixes to directories."""
    for i in range(len(list)):
        if os.path.isdir(os.path.join(head, list[i])):
            list[i] = list[i] + '/'
def annotate ( head , list ) : for i in range ( len ( list ) ) : if os . path . isdir ( os . path . join ( head , list [ i ] ) ) : list [ i ] = list [ i ] + '/'
Add '/' suffixes to directories.
Add / suffixes to directories .