(self, name, encoding, errors)
return prefix, name
Split a name longer than 100 chars into a prefix
           and a name part.
Split a name longer than 100 chars into a prefix
           and a name part.
Split a name longer than 100 chars into a prefix and a name part .
def _posix_split_name(self, name, encoding, errors):
        """Split a name longer than 100 chars into a prefix
           and a name part.
        """
        components = name.split("/")
        for i in range(1, len(components)):
            prefix = "/".join(components[:i])
            name = "/".join(components[i:])
            if len(prefix.encode(encoding, errors)) <= LENGTH_PREFIX and \
                    len(name.encode(encoding, errors)) <= LENGTH_NAME:
                break
        else:
            raise ValueError("name is too long")

        return prefix, name
def _posix_split_name ( self , name , encoding , errors ) : components = name . split ( "/" ) for i in range ( 1 , len ( components ) ) : prefix = "/" . join ( components [ : i ] ) name = "/" . join ( components [ i : ] ) if len ( prefix . encode ( encoding , errors ) ) <= LENGTH_PREFIX and len ( name . encode ( encoding , errors ) ) <= LENGTH_NAME : break else : raise ValueError ( "name is too long" ) return prefix , name