typedef FILETIME ReFileTime_t;
# define S_ISDIR(mode) (((mode) & _S_IFDIR) != 0)
# define ALLPERMS 0
-# define _mkdir(name, mode) _mkdir(name)
+# define _mkdir(name, mode) CreateDirectory(name, NULL)
#endif
#define RE_TESTUNIT
_mkdir(m_buffer.str(), ALLPERMS);
struct stat info;
if (stat(m_buffer.str(), &info) != 0){
- logF(true, "cannot create dir %1$s", m_buffer.str());
+ logF(true, "cannot create dir %s", m_buffer.str());
}
return m_buffer.str();
}
void makeFile(const char* relPath){
ReByteBuffer path(m_base);
- path.append("/").append(relPath);
+ path.append(relPath);
path.replaceAll("/", 1, OS_SEPARATOR, -1);
createFile(path.str(), relPath);
struct stat info;
if (stat(path.str(), &info) != 0){
- logF(true, "cannot create file %1$s", path.str());
+ logF(true, "cannot create file %s", path.str());
}
}
void initTree(){
"2015.03.28 10:21:31 *traverser/1.txt\n"
"2015.03.28 10:21:31 *traverser/dir1/dir1_2/dir1_2_1/x1.txt\n"
"2015.03.28 10:21:31 *traverser/dir1/dir1_2/dir1_2_1/x2.txt\n"
- "=== filtered: 3 file(s) 0.000059 MByte 0 dirs(s) * sec\n"
+ "=== filtered: 3 file(s) 0.000059 MByte 0 dirs(s) */sec\n"
"=== total: 4 file(s) 0.000067 MByte 6 dirs(s) * sec");
const char* argv2[] = { "dt", "list", "-P;*;-cache", "-tr", "-p;*.txt",