Skip to content

Commit e0d67a2

Browse files
Merge pull request #17 from codelathe/Get-etag-via-getsyncdelta
Return etag on getsyncdelta calls
2 parents 10df39e + 33f73ef commit e0d67a2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

filecloudapi/datastructures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ class SyncDeltaItem:
199199
candownload: bool
200200
canupload: bool
201201
canrename: bool
202+
etag: str
202203

203204

204205
@dataclass

filecloudapi/fcserver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,7 @@ def getsyncdelta(
14611461
"path": sync_folder.path,
14621462
"status": f"server,{sync_folder.update_version};",
14631463
"permissions": "1" if with_permissions else "0",
1464+
"includeextrafields": "1",
14641465
},
14651466
)
14661467

@@ -1482,6 +1483,7 @@ def getsyncdelta(
14821483
int(entry.findtext("./candownload", "0")) == 1,
14831484
int(entry.findtext("./canupload", "0")) == 1,
14841485
int(entry.findtext("./canrename", "0")) == 1,
1486+
entry.findtext("./etag", ""),
14851487
)
14861488
sync_delta.append(ne)
14871489

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22

33
name = "filecloudapi-python"
4-
version = "0.5.0"
4+
version = "0.5.1"
55
description = "A Python library to connect to a Filecloud server"
66

77
packages = [{ include = "filecloudapi" }]

0 commit comments

Comments
 (0)