Function save_shared
has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
def save_shared(
client: BaiduPCSClient,
shared_url: str,
remotedir: str,
password: Optional[str] = None,
Function list_files
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
def list_files(
self,
remote_dir: str,
retry: int = 3,
fail_silent: bool = False,
Function download_file
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
def download_file(
self,
remote_path: str,
local_dir: str,
file_size: int,
Function access_shared
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
def access_shared(
client: BaiduPCSClient,
shared_url: str,
password: str,
callback_save_captcha: Optional[Callable] = None,
Function save_shared
has 7 arguments (exceeds 4 allowed). Consider refactoring.
def save_shared(
Function save_shared_link
has 6 arguments (exceeds 4 allowed). Consider refactoring.
def save_shared_link(
Function access_shared
has 6 arguments (exceeds 4 allowed). Consider refactoring.
def access_shared(
Function list_all_sub_paths
has 5 arguments (exceeds 4 allowed). Consider refactoring.
def list_all_sub_paths(