if (flags & 0x10) bDirOnly = true;
FileInfo fi;
- if (!makeFileList(szDirName, &fi, bDirOnly)) return false;
-
+ if (!makeFileList(szDirName, &fi, bDirOnly)) {
+ flags = (flags | 0x80);
+ }
return m_writer.writeFileListData((unsigned char)flags, &fi);
}
m_bLocalBrowsing = false;
m_pBrowseDlg = new FTBrowseDlg(this);
- m_pBrowseDlg->create();
-
- m_pFileTransfer->requestFileList("", FT_FLR_DEST_BROWSE, true);
+ if (m_pBrowseDlg->create()) {
+ m_pFileTransfer->requestFileList("", FT_FLR_DEST_BROWSE, true);
+ } else {
+ delete m_pBrowseDlg;
+ m_pBrowseDlg = NULL;
+ }
}
void
void
FTDialog::showRemoteLVItems()
{
- m_pFileTransfer->requestFileList(m_szRemotePathTmp, FT_FLR_DEST_MAIN, 0);
+ m_pFileTransfer->requestFileList(m_szRemotePathTmp, FT_FLR_DEST_MAIN, false);
}
void
FTDialog::reqFolderUnavailable()
{
strcpy(m_szRemotePathTmp, m_szRemotePath);
+ SetWindowText(m_hwndRemotePath, m_szRemotePath);
+ UpdateWindow(m_hwndFTDialog);
}
int
sprintf(fullPath, "%s\\%s", pPath, pName);
m_pFTDialog->setStatusText("Creating Remote Folder: %s", fullPath);
writeFileCreateDirRqst(strlen(fullPath), fullPath);
- m_queueFileListRqst.add(pPath, 0, 0, FT_FLR_DEST_MAIN);
- writeFileListRqst(strlen(pPath), pPath, false);
+ requestFileList(pPath, FT_FLR_DEST_MAIN, false);
}
void
writeFileRenameRqst(strlen(fullOldName), strlen(fullNewName),
fullOldName, fullNewName);
- m_queueFileListRqst.add(pPath, 0, 0, FT_FLR_DEST_MAIN);
- writeFileListRqst(strlen(pPath), pPath, false);
+ requestFileList(pPath, FT_FLR_DEST_MAIN, false);
}
bool