From 716e7df03aa52abe656420a65aa748e8bc0bac09 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Mon, 14 Apr 2025 16:42:27 +0700 Subject: [PATCH] updated for list directory and show hidden files --- src/smol-http-pthreads.c | 22 ++++++++++++++-------- src/smol-http.c | 21 +++++++++++++-------- src/smol-pthreads.c | 23 +++++++++++++++-------- src/smol.c | 21 +++++++++++++-------- 4 files changed, 55 insertions(+), 32 deletions(-) diff --git a/src/smol-http-pthreads.c b/src/smol-http-pthreads.c index 0089e84..9672f2a 100644 --- a/src/smol-http-pthreads.c +++ b/src/smol-http-pthreads.c @@ -53,10 +53,10 @@ static void write_full(int ssl, const char *data, size_t len) { } } -static void list_files(int ssl) { +static void list_files(int ssl, char *directory) { char buf[8192] = "File Server

Files