X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCore%2FUtils.cxx;h=b7371f905b6e3acb041b7ff3936db28ec790f83e;hb=32d6088d027af13352bf6a71c47bcd14505a743f;hp=cd3deb0455a59950ed2a0b0de7f51a2eee15206e;hpb=b03c5abc97b183c3200e49bbea719b8180338e1b;p=tools%2Flibbatch.git diff --git a/src/Core/Utils.cxx b/src/Core/Utils.cxx index cd3deb0..b7371f9 100644 --- a/src/Core/Utils.cxx +++ b/src/Core/Utils.cxx @@ -97,6 +97,16 @@ std::string Utils::dirname(const std::string & path) return std::string("."); } +bool Utils::isOption(const std::string & val) +{ + return val.size() > 0 && val[0] == '-'; +} + +bool Utils::usesRsyncRelativePath(const std::string & path) +{ + return path.find("/./") != std::string::npos; +} + string Utils::createAndOpenTemporaryFile(const string & prefix, ofstream & outputStream) { if (outputStream.is_open())