Loading csst_dfs_client/plan.py +2 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,8 @@ def write_file(local_file: Union[IO, str], **kwargs) -> Result: Result: 操作的结果对象,包含操作是否成功以及相关的错误信息,成功返回数据对象。 """ if local_file is None: raise ValueError("local_file is required") if isinstance(local_file, str): if not os.path.exists(local_file): raise FileNotFoundError(local_file) Loading Loading
csst_dfs_client/plan.py +2 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,8 @@ def write_file(local_file: Union[IO, str], **kwargs) -> Result: Result: 操作的结果对象,包含操作是否成功以及相关的错误信息,成功返回数据对象。 """ if local_file is None: raise ValueError("local_file is required") if isinstance(local_file, str): if not os.path.exists(local_file): raise FileNotFoundError(local_file) Loading