clean
This commit is contained in:
parent
3e131d9f2e
commit
18358569d1
|
@ -78,7 +78,7 @@ class Handler(socketserver.StreamRequestHandler):
|
||||||
if file_name is None:
|
if file_name is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
print(f"{len(data)} bytes — {header} — '{file_name}'.")
|
print(f"{len(data)} bytes {header} → '{file_name}'.")
|
||||||
try:
|
try:
|
||||||
self.request.sendall(file_name.encode())
|
self.request.sendall(file_name.encode())
|
||||||
except BrokenPipeError:
|
except BrokenPipeError:
|
||||||
|
@ -111,7 +111,6 @@ def write_text(data: bytes, title: str = "", name: str = ""):
|
||||||
|
|
||||||
|
|
||||||
def write_content(data: bytes, name: str = "", extension: str = ""):
|
def write_content(data: bytes, name: str = "", extension: str = ""):
|
||||||
print("name", name, "extension", extension)
|
|
||||||
path = str(Path(ARGS.root) / "txt")
|
path = str(Path(ARGS.root) / "txt")
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
print(f"Missing '{path}' folder.")
|
print(f"Missing '{path}' folder.")
|
||||||
|
|
Reference in a new issue