def isdir(path):
    """
    Return True if path is an existing directory.

    Equivalent to "os.path.isdir".

    Args:
        path (path-like object): Path or URL.

    Returns:
        bool: True if directory exists.
    """
    system = get_instance(path)

    # User may use directory path without trailing '/'
    # like on standard file systems
    return system.isdir(system.ensure_dir_path(path))
def isdir ( path ) : system = get_instance ( path ) return system . isdir ( system . ensure_dir_path ( path ) )
Return True if path is an existing directory.

    Equivalent to "os.path.isdir".

    Args:
        path (path-like object): Path or URL.

    Returns:
        bool: True if directory exists.