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

Method GetFileDescriptor

src/Windows/FTPWindow.cpp:1098–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1096}
1097
1098int FTPWindow::GetFileDescriptor(FILEDESCRIPTOR * fd, int index) {
1099 if (!m_currentDropObject)
1100 return -1;
1101 if (index != 0)
1102 return -1;
1103
1104#define FD_PROGRESSUI 0x00004000
1105
1106 fd->dwFlags = FD_ATTRIBUTES | FD_CREATETIME | FD_ACCESSTIME | FD_WRITESTIME | FD_FILESIZE | FD_PROGRESSUI;
1107 fd->nFileSizeLow = m_currentDropObject->GetSize();
1108 fd->nFileSizeHigh = 0;
1109 fd->dwFileAttributes = FILE_ATTRIBUTE_NORMAL;
1110 fd->ftCreationTime = m_currentDropObject->GetCTime();
1111 fd->ftLastAccessTime = m_currentDropObject->GetATime();
1112 fd->ftLastWriteTime = m_currentDropObject->GetMTime();
1113 lstrcpyn(fd->cFileName, m_currentDropObject->GetLocalName(), MAX_PATH);
1114
1115 return 0;
1116}
1117
1118int FTPWindow::StreamData(CStreamData * stream, int index) {
1119 if (!m_currentDropObject)

Callers

nothing calls this directly

Calls 5

GetSizeMethod · 0.45
GetCTimeMethod · 0.45
GetATimeMethod · 0.45
GetMTimeMethod · 0.45
GetLocalNameMethod · 0.45

Tested by

no test coverage detected