fix create directory returning full path
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user