(path: str)
return path
Convert a path that dbt has, which might be >260 characters long, to one
    that will be writable/readable on Windows.

    On other platforms, this is a no-op.
Convert a path that dbt has, which might be >260 characters long, to one
    that will be writable/readable on Windows.
Convert a path that dbt has which might be > 260 characters long to one that will be writable / readable on Windows .
def convert_path(path: str) -> str:
    """Convert a path that dbt has, which might be >260 characters long, to one
    that will be writable/readable on Windows.

    On other platforms, this is a no-op.
    """
    # some parts of python seem to append '\*.*' to strings, better safe than
    # sorry.
    if len(path) < 250:
        return path
    if _supports_long_paths():
        return path

    prefix = '\\\\?\\'
    # Nothing to do
    if path.startswith(prefix):
        return path

    path = _win_prepare_path(path)

    # add the prefix. The check is just in case os.getcwd() does something
    # unexpected - I believe this if-state should always be True though!
    if not path.startswith(prefix):
        path = prefix + path
    return path
def convert_path ( path : str ) -> str : # some parts of python seem to append '\*.*' to strings, better safe than # sorry. if len ( path ) < 250 : return path if _supports_long_paths ( ) : return path prefix = '\\\\?\\' # Nothing to do if path . startswith ( prefix ) : return path path = _win_prepare_path ( path ) # add the prefix. The check is just in case os.getcwd() does something # unexpected - I believe this if-state should always be True though! if not path . startswith ( prefix ) : path = prefix + path return path