MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / Pwd

Method Pwd

src/FTPClientWrapperSSL.cpp:228–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228int FTPClientWrapperSSL::Pwd(char* buf, size_t size) {
229 int retcode = m_client.GetCurDir(buf, size);
230
231 size_t len = strlen(buf);
232 if (len > 1 && buf[len-1] == '/')
233 buf[len-1] = 0;
234
235 return OnReturn((retcode == UTE_SUCCESS)?0:-1);
236}
237
238int FTPClientWrapperSSL::Rename(const char * from, const char * to) {
239 int retcode = m_client.RenameFile(from, to);

Callers 1

GetRootObjectMethod · 0.45

Calls 1

GetCurDirMethod · 0.80

Tested by

no test coverage detected