normalize paths when added to queue

This commit is contained in:
Jakub Trllo 2022-12-06 16:00:49 +01:00
parent 272fd1eece
commit c764dc20c6

View file

@ -66,8 +66,8 @@ class FileTransaction(object):
"""Add a new file to transfer queue"""
opts = {"mode": mode}
src = os.path.abspath(src)
dst = os.path.abspath(dst)
src = os.path.normpath(os.path.abspath(src))
dst = os.path.normpath(os.path.abspath(dst))
if dst in self._transfers:
queued_src = self._transfers[dst][0]