From 74a60e8977189d2979333036f1cd849112be0503 Mon Sep 17 00:00:00 2001 From: Wirlaburla Date: Wed, 1 Jan 2025 12:53:26 -0600 Subject: [PATCH] fix create directory returning full path --- src/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.cpp b/src/client.cpp index 92794bb..c01c73b 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -167,7 +167,7 @@ public: } else if (cmd == "MKD") { if (state >= FTP_STATE_AUTHED) { struct file_data fd = filer->createDirectory(argstr); - if (fd.error.code == 0) submit(257, "\""+std::string(fd.path)+"\" directory created"); + if (fd.error.code == 0) submit(257, "\""+std::string(fd.relpath)+"\" directory created"); else if (fd.error.code == FilerStatusCodes::FileExists) submit(521, fd.error.msg); else submit(550, fd.error.msg); } else submit(530, "Not logged in");