1 #ifndef __DFTPD__IO_HPP__
2 #define __DFTPD__IO_HPP__
6 #define S_ISDIR(mode) (((mode) & _S_IFMT) == (_S_IFDIR))
7 #define S_ISREG(mode) (((mode) & _S_IFMT) == (_S_IFREG))
8 #define localtime_r(a,b) localtime_s(b,a)
18 static bool MkDir( const std::string
& dir
);
19 static bool RmDir( const std::string
& dir
);
31 bool Open( const std::string
& dir
);
33 Directory
& operator++();
36 std::string
GetName();
41 WIN32_FIND_DATA m_ffd
;