third_party/blink/tools/blinkpy/common/system/filesystem.py
def _path_for_access(self, path):
        """Ensures a path can be used to access the file.

        Pass a path through this method when and only when the path is about to
        be accessed via a syscall (e.g. open()); DO NOT use this method if the
        path is to be manipulated by (most of) the functions in os.path, etc.

        This method currently only works around one issue: the maximum path
        length on Windows. If the current platform is Windows and the given path
        is longer than MAX_PATH (260), the path will be converted to a UNC path
        by first making the path absolute and then prepending the UNC magic
        prefix '\\?\'. Otherwise, the method is a no-op.
        (https://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpath)
        """
        if sys.platform == 'win32' and len(path) >= self.WINDOWS_MAX_PATH:
            assert not path.startswith(r'\\'), "must not already be UNC"
            return r'\\?\%s' % (self.abspath(path), )
        return path
Ensures a path can be used to access the file.

        Pass a path through this method when and only when the path is about to
        be accessed via a syscall (e.g. open()); DO NOT use this method if the
        path is to be manipulated by (most of) the functions in os.path, etc.

        This method currently only works around one issue: the maximum path
        length on Windows. If the current platform is Windows and the given path
        is longer than MAX_PATH (260), the path will be converted to a UNC path
        by first making the path absolute and then prepending the UNC magic
        prefix '\\?\'. Otherwise, the method is a no-op.
        (https://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpath)
        
Ensures a path can be used to access the file.
Pass a path through this method when and only when the path is about to
be accessed via a syscall ); DO NOT use this method if the
path is to be manipulated by (most of) the functions in os.path, etc.

This method currently only works around one issue: the maximum path
length on Windows. If the current platform is Windows and the given path
is longer than MAX_PATH (260), the path will be converted to a UNC path
by first making the path absolute and then prepending the UNC magic
prefix '\\?\'. Otherwise, the method is a no-op.
Ensures a path can be used to access the file . Pass a path through this method when and only when the path is about to be accessed via a syscall ) ; DO NOT use this method if the path is to be manipulated by ( most of ) the functions in os . path etc . This method currently only works around one issue : the maximum path length on Windows . If the current platform is Windows and the given path is longer than MAX_PATH ( 260 ) the path will be converted to a UNC path by first making the path absolute and then prepending the UNC magic prefix ' \\ ? \ ' . Otherwise the method is a no - op .
def _path_for_access(self, path):
        if sys.platform == 'win32' and len(path) >= self.WINDOWS_MAX_PATH:
            assert not path.startswith(r'\\'), "must not already be UNC"
            return r'\\?\%s' % (self.abspath(path), )
        return path
def _path_for_access ( self , path ) : if sys . platform == 'win32' and len ( path ) >= self . WINDOWS_MAX_PATH : assert not path . startswith ( r'\\' ) , "must not already be UNC" return r'\\?\%s' % ( self . abspath ( path ) , ) return path
Ensures a path can be used to access the file.
Ensures a path can be used to access the file .
"""Ensures a path can be used to access the file.

        Pass a path through this method when and only when the path is about to
        be accessed via a syscall (e.g. open()); DO NOT use this method if the
        path is to be manipulated by (most of) the functions in os.path, etc.

        This method currently only works around one issue: the maximum path
        length on Windows. If the current platform is Windows and the given path
        is longer than MAX_PATH (260), the path will be converted to a UNC path
        by first making the path absolute and then prepending the UNC magic
        prefix '\\?\'. Otherwise, the method is a no-op.
        (https://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpath)
        """
self
path