From 379c0aa6b49aed920c93df52b1576b58b9000430 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 5 Jul 2026 19:28:51 +0000 Subject: [PATCH] volflags: no_readme, no_logues --- copyparty/__main__.py | 4 ++-- copyparty/authsrv.py | 4 ++++ copyparty/cfg.py | 4 ++++ copyparty/util.py | 8 ++++++++ 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/copyparty/__main__.py b/copyparty/__main__.py index baf49e21..ce41be5a 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -1682,8 +1682,8 @@ def add_safety(ap): ap2.add_argument("--vol-or-crash", action="store_true", help="if a volume's folder does not exist on the HDD, then burst into flames (volflag=assert_root)") ap2.add_argument("--no-dot-mv", action="store_true", help="disallow moving dotfiles; makes it impossible to move folders containing dotfiles") ap2.add_argument("--no-dot-ren", action="store_true", help="disallow renaming dotfiles; makes it impossible to turn something into a dotfile") - ap2.add_argument("--no-logues", action="store_true", help="disable rendering .prologue/.epilogue.html into directory listings") - ap2.add_argument("--no-readme", action="store_true", help="disable rendering readme/preadme.md into directory listings") + ap2.add_argument("--no-logues", action="store_true", help="disable rendering .prologue/.epilogue.html into directory listings (volflag=no_logues)") + ap2.add_argument("--no-readme", action="store_true", help="disable rendering readme/preadme.md into directory listings (volflag=no_readme)") ap2.add_argument("--csp-ui", metavar="TXT", default="script-src 'unsafe-eval' 'nonce-{{ js_nonce }}'; worker-src 'self'", help="content-security-policy to apply for the web-UI; default helps prevent XSS by blocking