fix create directory returning full path

This commit is contained in:
2025-01-01 12:53:26 -06:00
parent 875bf3e517
commit 74a60e8977

View File

@@ -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");