diff --git a/filecloudapi/datastructures.py b/filecloudapi/datastructures.py index 0f11e31..5027624 100644 --- a/filecloudapi/datastructures.py +++ b/filecloudapi/datastructures.py @@ -199,6 +199,7 @@ class SyncDeltaItem: candownload: bool canupload: bool canrename: bool + etag: str @dataclass diff --git a/filecloudapi/fcserver.py b/filecloudapi/fcserver.py index a2a5403..ef53327 100644 --- a/filecloudapi/fcserver.py +++ b/filecloudapi/fcserver.py @@ -1461,6 +1461,7 @@ def getsyncdelta( "path": sync_folder.path, "status": f"server,{sync_folder.update_version};", "permissions": "1" if with_permissions else "0", + "includeextrafields": "1", }, ) @@ -1482,6 +1483,7 @@ def getsyncdelta( int(entry.findtext("./candownload", "0")) == 1, int(entry.findtext("./canupload", "0")) == 1, int(entry.findtext("./canrename", "0")) == 1, + entry.findtext("./etag", ""), ) sync_delta.append(ne) diff --git a/pyproject.toml b/pyproject.toml index 8e9735b..4636385 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "filecloudapi-python" -version = "0.5.0" +version = "0.5.1" description = "A Python library to connect to a Filecloud server" packages = [{ include = "filecloudapi" }]