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

大量时间耗费在get_file_list函数上 #79

Open
Johnie9 opened this issue Jun 27, 2022 · 0 comments
Open

大量时间耗费在get_file_list函数上 #79

Johnie9 opened this issue Jun 27, 2022 · 0 comments

Comments

@Johnie9
Copy link

Johnie9 commented Jun 27, 2022

当一个文件夹下有大量文件时,比如好几千个,此时上传一个文件,因为默认重名文件会被直接覆盖,而查询是否重名会先获得文件列表,大量时间将会花费在get_file_list函数上,应该给upload_file函数添加一个是否覆盖重名文件的参数,由用户决定是否需要重名覆盖,或者再添加一个去重名文件函数,这样只需要在上传完所有要上传的文件之后调用一次或者用户自己手动调用,而不是每次上传都调用一次

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

No branches or pull requests

1 participant