Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多文件转换: web url转本地 中 output_directory 参数不起作用 #17

Open
1 task done
ForeUP opened this issue Dec 14, 2023 · 2 comments
Open
1 task done
Labels
question Further information is requested

Comments

@ForeUP
Copy link

ForeUP commented Dec 14, 2023

Checklist

  • I've searched the project's issues.

❓ Question

我尝试将多个md文档中的图片保存,按照readme中的说明操作,我的代码如下:

def main():
    adapter = LocalFileAdapter()
    converter = MdImageConverter(adapter=adapter)

    # 文件夹
    md_folder = MdFolder(name=r"E:\Users\zwc\Downloads\md_test")
    # 将文件输出至converted_mds文件夹
    converter.convert(md_folder, output_directory=r"E:\Users\zwc\Downloads\md_test\converted_mds")
    converter.convert(md_folder, output_directory=r"E:\Users\zwc\Downloads\md_test\converted_mds")

if __name__ == '__main__':
    main()

其中 # 将文件输出至converted_mds文件夹 没有作用,现在只是对源文件进行修改,并将下载的图片存到 md_folder 路径下的images文件夹。

📎 Additional context

@ForeUP ForeUP added the question Further information is requested label Dec 14, 2023
@ForeUP
Copy link
Author

ForeUP commented Dec 14, 2023

好吧,是绝对路径的问题,但是中间没任何提示,建议检测到的绝对路径时应当有个提示

@Undertone0809
Copy link
Owner

可以,感谢你的反馈,我会在后续的版本中进行相关的优化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants