We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88bda68 commit fed1ec8Copy full SHA for fed1ec8
mfd_connect/pathlib/path.py
@@ -400,7 +400,8 @@ def samefile(self, other_path: CustomPath) -> bool: # noqa:D102
400
)
401
402
def read_text(self, encoding: Optional[str] = None, errors: Optional["Iterable"] = None) -> str: # noqa:D102
403
- return self._owner.execute_command(f"cat {self}", expected_return_codes=None).stdout
+ proc = self._owner.start_process(f"cat {self}")
404
+ return "".join(chunk for chunk in proc.get_stdout_iter())
405
406
def touch(self, mode: int = 0o666, exist_ok: bool = True) -> None: # noqa:D102
407
if not exist_ok and self.is_file():
0 commit comments