[Bug] if dst not exists, when move a single file may raise a file not exist error. (#1803)

pull/1807/head
Kevin Wang 2023-03-24 14:14:45 +08:00 committed by GitHub
parent c886936117
commit f47cff5199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -191,6 +191,7 @@ class NaiveDataObtainer:
shutil.move(f, dst)
elif osp.exists(src) and not osp.exists(dst):
mkdir_or_exist(osp.dirname(dst))
shutil.move(src, dst)
def clean(self) -> None: