From a51e2c24a927fea0af92677d8fba7015bd4e4ccd Mon Sep 17 00:00:00 2001 From: Maks Jopek Date: Sat, 11 Jul 2026 00:48:14 +0200 Subject: Initial commit --- cgi-bin/list-files.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 cgi-bin/list-files.py (limited to 'cgi-bin/list-files.py') diff --git a/cgi-bin/list-files.py b/cgi-bin/list-files.py new file mode 100755 index 0000000..15d6391 --- /dev/null +++ b/cgi-bin/list-files.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +import json, os + +print("Content-Type: application/json; charset=utf-8") +print("") + +dir_list = os.listdir("uploads") + +print(json.dumps(dir_list)) -- cgit v1.3.1