mirror of https://github.com/open-mmlab/mmocr.git
[Bug] if dst not exists, when move a single file may raise a file not exist error. (#1803)
parent
c886936117
commit
f47cff5199
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue