Salome HOME
Add rsync as a new protocol for copy.
[tools/libbatch.git] / src / Core / Utils.hxx
index ed208125ea58825c20b722f3db8814af48882398..8df38c00be320d9cf330ab8fcae6fca14ce78458 100644 (file)
@@ -56,6 +56,17 @@ public:
    */
   static std::string dirname(const std::string & path);
 
+  /**
+   * Test if the string in parameter begins with '-' and it should be processed
+   * as an option, not as a path.
+   */
+  static bool isOption(const std::string & val);
+
+  /**
+   * Test if the path in parameter contains a "/./" sequence.
+   */
+  static bool usesRsyncRelativePath(const std::string & path);
+
   /**
    * Create a temporary file and open an output stream to write into this file.
    * The file is created with the pattern "<tmpdir>/libbatch-<prefix>-XXXXXX" where <tmpdir> is the