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 59ea8ee commit 0e10acfCopy full SHA for 0e10acf
src/codeboxapi/types.py
@@ -49,6 +49,14 @@ async def asave(self, local_path: str) -> None:
49
async for chunk in self.remote.astream_download(self.path):
50
await f.write(chunk)
51
52
+ def __str__(self) -> str:
53
+ return self.name
54
+
55
+ def __repr__(self) -> str:
56
+ if self._size is None:
57
+ return f"RemoteFile({self.path})"
58
+ return f"RemoteFile({self.path}, {self._size} bytes)"
59
60
61
@dataclass
62
class ExecChunk:
0 commit comments