def path2Name(path, default=None):
    """Answers the file name part of the path.

    >>> path2Name('/xxx/yyy/zzz/Agency_FB-Compressed.ufo')
    'Agency_FB-Compressed.ufo'
    >>> path2Name('a/b/c')
    'c'
    >>> path2Name('a/b/c/')
    'Untitled'
    >>> path2Name('')
    'Untitled'
    >>> path2Name(None) is None
    True
    """
    if not default:
        default = 'Untitled'
    if path is None:
        return None
    if not path:
        return default
    name = path.split('/')[-1]
    if not name:
        return default
    return name
