Skip to content

Commit

Permalink
[163] Add exists() method to RemoteFile class
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinHeist committed Jul 25, 2024
1 parent 9255262 commit 5aa7a00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions modules/RemoteFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ def resolve(self) -> Path:
return self.local_file.resolve()


def exists(self) -> bool:
"""Wrapper for `Path.exists()` of the associated file."""

return self.local_file.exists()


@retry(stop=stop_after_attempt(3),
wait=wait_fixed(3)+wait_exponential(min=1, max=16))
def __get_remote_content(self) -> Response:
Expand Down
2 changes: 1 addition & 1 deletion modules/ref/version_webui
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.0-alpha.10.1-webui162
v2.0-alpha.10.1-webui163

0 comments on commit 5aa7a00

Please sign in to comment.