From e7a0dbef2e644bc8d2c9f9d96c127f9e61785f67 Mon Sep 17 00:00:00 2001 From: Hamatoma Date: Sun, 22 Feb 2015 00:28:15 +0100 Subject: [PATCH] mkdir() -> CreateDirectory() --- base/rebase.hpp | 2 +- cunit/cuReDirTools.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/base/rebase.hpp b/base/rebase.hpp index a45037e..1a8407c 100644 --- a/base/rebase.hpp +++ b/base/rebase.hpp @@ -60,7 +60,7 @@ 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 diff --git a/cunit/cuReDirTools.cpp b/cunit/cuReDirTools.cpp index 5c29591..60d47e2 100644 --- a/cunit/cuReDirTools.cpp +++ b/cunit/cuReDirTools.cpp @@ -32,18 +32,18 @@ private: _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(){ @@ -277,7 +277,7 @@ private: "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", -- 2.39.5