diff --git a/src/wsjcpp_core.cpp b/src/wsjcpp_core.cpp index e81e31e..0e70385 100644 --- a/src/wsjcpp_core.cpp +++ b/src/wsjcpp_core.cpp @@ -275,7 +275,7 @@ bool WSJCppCore::makeDir(const std::string &sDirname) { std::cout << "FAILED create folder " << sDirname << std::endl; return false; } - std::cout << "nStatus: " << nStatus << std::endl; + // std::cout << "nStatus: " << nStatus << std::endl; return true; } @@ -283,12 +283,12 @@ bool WSJCppCore::makeDir(const std::string &sDirname) { bool WSJCppCore::writeFile(const std::string &sFilename, const std::string &sContent) { - std::ofstream f(sFilename, std::ifstream::in); + // std::ofstream f(sFilename, std::ifstream::in); + std::ofstream f(sFilename, std::ios::out); if (!f) { - std::cout << "FAILED could not create file to wtite " << sFilename << std::endl; + WSJCppLog::err("WSJCppCore", "Could not create file to write '" + sFilename + "'"); return false; } - f << sContent << std::endl; f.close(); return true; diff --git a/wsjcpp.yml b/wsjcpp.yml index 388d94a..d8c9994 100644 --- a/wsjcpp.yml +++ b/wsjcpp.yml @@ -1,5 +1,5 @@ -wsjcpp: 1.0.0 +wsjcpp_version: v0.0.1 cmake_cxx_standard: 11 cmake_minimum_required: 3.0 @@ -8,7 +8,8 @@ version: 0.0.1 description: Basic Utils for wsjcpp issues: https://github.com/wsjcpp/wsjcpp-core/issues repositories: - - "https://github.com/wsjcpp/wsjcpp-core" + - type: main + url: "https://github.com/wsjcpp/wsjcpp-core" keywords: - c++ - wsjcpp @@ -35,4 +36,4 @@ unit-tests: files: - unit-tests/src/main.cpp - unit-tests/src/unit_tests.h - - unit-tests/src/unit_tests.cpp \ No newline at end of file + - unit-tests/src/unit_tests.cpp