diff --git a/trying_to_fix_nextcloud.py b/trying_to_fix_nextcloud.py index ec7a9a0..bcd3d98 100644 --- a/trying_to_fix_nextcloud.py +++ b/trying_to_fix_nextcloud.py @@ -5,7 +5,9 @@ import sys # Prepare and send the propfind request return xml string def propfind(path,auth): headers = {"Depth":"1"} - req = r = requests.Request("PROPFIND", path, headers=headers, auth=auth) + # This body returns only the timelastmodified and the fileid variable + data = ""+""+""+ ""+""+"" + req = r = requests.Request("PROPFIND", path, headers=headers, auth=auth, data=data) prepped = req.prepare() s = requests.Session()