提交 87e77187 编写于 作者: W wangxiao

update downloader.py

上级 d4a2cb17
......@@ -87,12 +87,8 @@ def _download(item, scope, path, silent=False):
if scope == 'bert-en-uncased-large':
source_path = data_dir + '/' + data_name.split('.')[0]
fileList = os.listdir(source_path)
print('source: {}'.format(source_path))
print('filelist: {}'.format(fileList))
for file in fileList:
filePath = os.path.join(source_path, file)
print('filepath: {}'.format(filePath))
print('datadir: {}'.format(data_dir))
shutil.move(filePath, data_dir)
os.removedirs(source_path)
if not silent:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册