Skip to content

Commit

Permalink
enh: change call style for remove in conduit utils
Browse files Browse the repository at this point in the history
also fix typo in warning message
  • Loading branch information
cyrush committed Sep 21, 2016
1 parent d8421b5 commit 65b9719
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/conduit/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ is_file(const std::string &path)
bool res = false;
#if defined(CONDUIT_PLATFORM_WINDOWS)
// TODO
CONDUIT_WARN("utils::is_directory not implemented on windows");
CONDUIT_WARN("utils::is_file not implemented on windows");
#else // unix, etc
struct stat path_stat;
stat(path.c_str(), &path_stat);
Expand Down Expand Up @@ -343,7 +343,8 @@ is_directory(const std::string &path)
bool
remove_file(const std::string &path)
{
return remove(path.c_str());
int res = remove(path.c_str());
return (res == 0);
}


Expand Down

0 comments on commit 65b9719

Please sign in to comment.