From 56592253f471604f1c828959f670264e9b3f04ac Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 16 Jun 2020 12:39:15 -0500 Subject: [PATCH] stat endpoint https://docs.pcloud.com/methods/file/stat.html --- src/pcloud/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pcloud/api.py b/src/pcloud/api.py index d847a03..3ef90b1 100644 --- a/src/pcloud/api.py +++ b/src/pcloud/api.py @@ -154,6 +154,10 @@ def deletefile(self, **kwargs): def renamefile(self, **kwargs): return self._do_request("renamefile", **kwargs) + @RequiredParameterCheck(("path", "fileid")) + def stat(self, **kwargs): + return self._do_request("stat", **kwargs) + # Auth API methods def sendverificationemail(self, **kwargs): return self._do_request("sendverificationemail", **kwargs)