migrate obsoleted function parse_obj_as
to TypeAdapter().validate_python()
.
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import os
|
||||
from argparse import Namespace, _SubParsersAction
|
||||
from unicodedata import normalize
|
||||
|
||||
from mdrsclient.api import FolderApi
|
||||
from mdrsclient.commands.base import BaseCommand
|
||||
@ -25,4 +26,4 @@ class MkdirCommand(BaseCommand):
|
||||
if parent_folder.find_sub_folder(r_basename) is not None or parent_folder.find_file(r_basename) is not None:
|
||||
raise IllegalArgumentException(f"Cannot create folder `{r_path}`: File exists.")
|
||||
folder_api = FolderApi(connection)
|
||||
folder_api.create(r_basename, parent_folder.id)
|
||||
folder_api.create(normalize("NFC", r_basename), parent_folder.id)
|
||||
|
Reference in New Issue
Block a user