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

Method OnActivateLocalFile

src/Windows/FTPWindow.cpp:257–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257int FTPWindow::OnActivateLocalFile(const TCHAR* filename) {
258 m_localFileExists = false;
259 if (!filename) {
260 SetToolbarState();
261 return -1;
262 }
263
264 BOOL exist = PathFileExists(filename);
265 if (exist == TRUE) {
266 BOOL isdir = PathIsDirectory(filename); //Cannot upload directories
267 m_localFileExists = (isdir == FALSE);
268 }
269
270 SetToolbarState();
271
272 return 0;
273}
274
275int FTPWindow::RegisterClass() {
276 WNDCLASSEX FTPWindowClass{};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected