ChenyangGao / web-mount-packs

Encapsulating web interfaces for some network disks
MIT License
213 stars 37 forks source link

请问115API是否有获取当前目录下所有文件数量的方法? #33

Closed BlackWhite2000 closed 1 month ago

BlackWhite2000 commented 1 month ago

只找到了dirlen,也就是当前目录下的文件数量,而不是当前目录下包括子目录下的所有文件数量 我是写了个递归,通过切换 self.fs.chdir(dir_path_item) 实现统计。 但是这存在一个问题,切换次数过多好像115会限制

httpx.HTTPStatusError: Client error '405 Not Allowed' for url 'https://webapi.115.com/files/getid?path=files'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
ChenyangGao commented 1 month ago

client.fs_files_statistic

BlackWhite2000 commented 1 month ago

client.fs_files_statistic

你好,在 client.py 里面我好像没找到 fs_files_statistic

也没有搜索到 image

BlackWhite2000 commented 1 month ago

找到了 fs_statistic

ChenyangGao commented 1 month ago

找到了 fs_statistic

对,是这个