【VC开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了VC开源代码-FtpFile.cpp的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
// FtpFile.cpp: implementation of the CFtpFile class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ftpclient.h"
#include "FtpFile.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new D
EBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CFtpFile::CFtpFile()
{
m_sName = _T("");
m_bFolder = TRUE;
}
CFtpFile::~CFtpFile()
{
}
LPCTSTR CFtpFile::GetName()
{
return (LPCTSTR)m_sName;
}
BOOL CFtpFile::Is
Directory()
{
return m_bFolder;
}
CFtpFile::CFtpFile(LPCTSTR lpszName, BOOL bFolder)
{
m_sName = lpszName;
m_bFolder = bFolder;
}