Skip to content

Commit 1c081b9

Browse files
Cap-LeviRes260
authored andcommitted
Added fix(recorder): replace colons in filenames to ensure Windows compatibility
1 parent f0ffe75 commit 1c081b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyrdp/recording/recorder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ def __init__(self, fileName: Union[str, Path]):
105105
self.pending = b''
106106

107107
self.filename = fileName
108+
self.filename = str(self.filename).replace(":", "_")
109+
108110
self.fd: BufferedIOBase = None
109111

110112
def sendBytes(self, data: bytes):

0 commit comments

Comments
 (0)