def _split_path(self, path):
        """
        Hack to try to support both types of file system paths:
          - forward slash, /etc
          - backslash, C:\windows\system32

        Linux uses forward slashes, so we'd like that when working with FUSE.
        The original file system used backslashes, so we'd also like that.

        This is a poor attempt at doing both:
          - detect which slash type is in use
          - don't support both at the same time

        This works like string.partition(PATH_SEPARATOR)
        """
        if "\\" in path:
            if "/" in path:
                raise UnsupportedPathError(path)
            return path.partition("\\")

        elif "/" in path:
            if "\\" in path:
                raise UnsupportedPathError(path)
            return path.partition("/")
        else:
            return path, "", ""
dataset/ETHPy150Open williballenthin/python-ntfs/ntfs/filesystem/__init__.py/NTFSDirectory._split_path/original