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

Method MkFile

src/FTPClientWrapperSSH.cpp:229–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228
229int FTPClientWrapperSSH::MkFile(const char * path) {
230 sftp_file file = sftp_open(m_sftpsession, path, (O_WRONLY|O_CREAT|O_EXCL), 0664); //default rw-rw-r-- permission
231 if (file == NULL)
232 return OnReturn(-1);
233
234 //int retcode = sftp_write(file, "", 0);
235 sftp_close(file);
236
237 return OnReturn(0);
238}
239
240int FTPClientWrapperSSH::SendFile(const TCHAR * localfile, const char * ftpfile) {
241 HANDLE hFile = OpenFile(localfile, false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected