def get_file_type(rp):
    """Returns one of "regular", "directory", "missing", or "special"."""
    if not rp.lstat():
        return 'missing'
    elif rp.isdir():
        return 'directory'
    elif rp.isreg():
        return 'regular'
    else:
        return 'special'
