From 824606c023be14596af3ed96368a4f27efb9c575 Mon Sep 17 00:00:00 2001 From: Wirlaburla Date: Fri, 25 Apr 2025 19:13:01 -0500 Subject: [PATCH] add no-arg alias from RETR to LIST --- src/plugins/filer_local/filer_local.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/filer_local/filer_local.cpp b/src/plugins/filer_local/filer_local.cpp index 68bcc36..f983051 100644 --- a/src/plugins/filer_local/filer_local.cpp +++ b/src/plugins/filer_local/filer_local.cpp @@ -262,6 +262,10 @@ public: return fd; } + if (fs::is_directory(resolved)) { + return list(std::string(fd.relpath)); + } + if (type != 'A') { // Create a shared_ptr to manage the ifstream fd.stream = std::make_shared(resolved, std::ios::in|std::ios::binary);