(self, dos_pathmask)
return native_path, native_relpath, dos_mask
Split pathmask into path and mask.
Split pathmask into path and mask.
Split pathmask into path and mask .
def _split_pathmask(self, dos_pathmask):
        """Split pathmask into path and mask."""
        # forward slashes - file not found
        # GW-BASIC sometimes allows leading or trailing slashes
        # and then does weird things I don't understand.
        if b'/' in dos_pathmask:
            raise error.BASICError(error.FILE_NOT_FOUND)
        # note that ntpath would otherwise accept / as \\
        dos_path, dos_mask = ntpath.split(dos_pathmask)
        try:
            native_relpath = self._get_native_reldir(dos_path)
        except error.BASICError as e:
            # any path name problem in FILES: GW-BASIC throws file not found
            raise error.BASICError(error.FILE_NOT_FOUND)
        native_path = os.path.join(self._native_root, native_relpath)
        return native_path, native_relpath, dos_mask
def _split_pathmask ( self , dos_pathmask ) : # forward slashes - file not found # GW-BASIC sometimes allows leading or trailing slashes # and then does weird things I don't understand. if b'/' in dos_pathmask : raise error . BASICError ( error . FILE_NOT_FOUND ) # note that ntpath would otherwise accept / as \\ dos_path , dos_mask = ntpath . split ( dos_pathmask ) try : native_relpath = self . _get_native_reldir ( dos_path ) except error . BASICError as e : # any path name problem in FILES: GW-BASIC throws file not found raise error . BASICError ( error . FILE_NOT_FOUND ) native_path = os . path . join ( self . _native_root , native_relpath ) return native_path , native_relpath , dos_mask