This commit is contained in:
dece 2022-09-03 20:28:07 +02:00
parent 3e131d9f2e
commit 18358569d1

View file

@ -78,7 +78,7 @@ class Handler(socketserver.StreamRequestHandler):
if file_name is None:
return
print(f"{len(data)} bytes {header} '{file_name}'.")
print(f"{len(data)} bytes {header} '{file_name}'.")
try:
self.request.sendall(file_name.encode())
except BrokenPipeError:
@ -111,7 +111,6 @@ def write_text(data: bytes, title: str = "", name: str = ""):
def write_content(data: bytes, name: str = "", extension: str = ""):
print("name", name, "extension", extension)
path = str(Path(ARGS.root) / "txt")
if not os.path.isdir(path):
print(f"Missing '{path}' folder.")