diff --git a/copyparty/util.py b/copyparty/util.py index 18bf6e43..ffcc8a7c 100644 --- a/copyparty/util.py +++ b/copyparty/util.py @@ -410,6 +410,10 @@ def log_thrs(log, ival, name): def vol_san(vols, txt): for vol in vols: txt = txt.replace(vol.realpath.encode("utf-8"), vol.vpath.encode("utf-8")) + txt = txt.replace( + vol.realpath.encode("utf-8").replace(b"\\", b"\\\\"), + vol.vpath.encode("utf-8"), + ) return txt