@staticmethod
def splitpath(path):
    """
        Splits the path using either slashes
        """
    split1 = path.rpartition(b'/')
    split2 = path.rpartition(b'\\')
    if len(split1[0]) > len(split2[0]):
        return split1
    else:
        return split2
