mirror of
https://github.com/winscp/winscp.git
synced 2026-10-24 02:28:55 +03:00
52 lines
1.0 KiB
C++
52 lines
1.0 KiB
C++
//---------------------------------------------------------------------------
|
|
#include "stdafx.h"
|
|
|
|
|
|
AFX_COMDAT int _afxInitDataA[] = { -1, 0, 0, 0 };
|
|
AFX_COMDAT CStringDataA* _afxDataNilA = (CStringDataA*)&_afxInitDataA;
|
|
AFX_COMDAT LPCSTR _afxPchNilA = (LPCSTR)(((BYTE*)&_afxInitDataA)+sizeof(CStringDataA));
|
|
|
|
t_directory::t_directory()
|
|
{
|
|
direntry=0;
|
|
num=0;
|
|
}
|
|
|
|
t_directory::~t_directory()
|
|
{
|
|
if (direntry)
|
|
delete [] direntry;
|
|
}
|
|
|
|
t_directory& t_directory::operator=(const t_directory &a)
|
|
{
|
|
if (&a==this)
|
|
return *this;
|
|
|
|
if (direntry)
|
|
delete [] direntry;
|
|
direntry=0;
|
|
path=a.path;
|
|
num=a.num;
|
|
server=a.server;
|
|
if (num)
|
|
direntry=new t_directory::t_direntry[num];
|
|
for (int i=0;i<num;i++)
|
|
direntry[i]=a.direntry[i];
|
|
return *this;
|
|
}
|
|
|
|
t_directory::t_direntry::t_direntry()
|
|
{
|
|
dir=FALSE;
|
|
size=0;
|
|
bUnsure=TRUE;
|
|
bLink=FALSE;
|
|
}
|
|
|
|
t_directory::t_direntry::t_date::t_date()
|
|
{
|
|
year=month=day=hour=minute=second=0;
|
|
hasdate=hastime=hasyear=hasseconds=utc=FALSE;
|
|
}
|