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: # In case of an empty string or False, answer default.
        return default
    name = path.split('/')[-1]
    if not name: # In case path ended with a slash
        return default
    return name