From 7461c982860a87bcb97113a38c1dceeb426af16e Mon Sep 17 00:00:00 2001 From: Lisa-Hoffmann <96966642+Lisa-Hoffmann@users.noreply.github.com> Date: Thu, 6 Jan 2022 00:26:35 +0100 Subject: [PATCH] Edited Propfind to return fileid --- trying_to_fix_nextcloud.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()