From 7b21e9f9ce8b191ba67fd0d303c50b748e8d23c9 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 4 Jul 2026 21:41:12 +0000 Subject: [PATCH] r --- copyparty/httpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 8b1f3fbe..9a12d680 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -4174,7 +4174,7 @@ class HttpCli(object): atomic_move(self.log, fp, os.path.join(dp, mfile2), vfs.flags) nmax = dbv.flags["md_nhist"] if nmax: - zs = "%s\.[0-9]+\.[0-9]{3}\.%s" + zs = r"%s\.[0-9]+\.[0-9]{3}\.%s" ptn = re.compile(zs % (re.escape(fname), re.escape(fext))) zsl = [x for x in os.listdir(dp) if ptn.match(x)] zsl.sort(reverse=True)