def cat(ctx, remotepath, encoding): """显示文件内容""" api = _recent_api(ctx) if not api: return pwd = _pwd(ctx) remotepath = join_path(pwd, remotepath) _cat(api, remotepath, encoding=encoding)
def cat(ctx, remotepath, encoding, no_decrypt, encrypt_password): """显示文件内容""" api = _recent_api(ctx) if not api: return pwd = _pwd(ctx) remotepath = join_path(pwd, remotepath) if no_decrypt: encrypt_password = b"" else: encrypt_password = encrypt_password or _encrypt_password(ctx) _cat(api, remotepath, encoding=encoding, encrypt_password=encrypt_password)
def cat(ctx, remotepath, encoding, no_decrypt, encrypt_key): """显示文件内容""" api = _recent_api(ctx) if not api: return pwd = _pwd(ctx) remotepath = join_path(pwd, remotepath) if no_decrypt: encrypt_key = None else: encrypt_key = encrypt_key or _encrypt_key(ctx) _cat(api, remotepath, encoding=encoding, encrypt_key=encrypt_key)