Return TypeFunction nameArguments
hzEcodehzFtpClient::SetLocalDir(const hzString&,)

Declared in file: hzFtpClient.h
Defined in file : hzFtpClient.cpp

Function Logic:

0:START 1:lstat(*dir,&fs)==-1 2:Return E_NOTFOUND 3:!S_ISDIR(fs.st_mode) 4:Return E_TYPE 5:m_LocalDir 6:Return E_OK

Function body:

hzEcode hzFtpClient::SetLocalDir (const hzString& dir)
{
   FSTAT   fs ;
   if (lstat(*dir, &fs) == -1)
       return E_NOTFOUND ;
   if (!ISDIR(fs.st_mode))
       return E_TYPE ;
   m_LocalDir = dir ;
   /*
   **  if (_hzGlobal_Debug & HZ_DEBUG_CLIENT)
   **    threadLog("hzFtpClient::SetLocalDir. Set local directory to %s\n", *m_LocalDir) ;
   **      */
   return E_OK ;
}