Salome HOME
ADD a end user module (services.py) to help the manipulation of SALOME KERNEL service...
[modules/kernel.git] / src / Basics / Basics_DirUtils.hxx
index 120d76f59160f272fb9c4ea00e4d4ddbcafdbb05..1e8c0eb8b5fe336f4c10b5baa3105a7aa5f65017 100644 (file)
@@ -34,6 +34,9 @@ namespace Kernel_Utils
   // Extracts and returns the base name of the specified file name.
   BASICS_EXPORT std::string GetBaseName( const std::string& file_path );
 
+  // Extracts and returns the dir name of the specified file name.
+  BASICS_EXPORT std::string GetDirName( const std::string& file_path );
+
   // Returns the unique temporary directory, that is defined in tmp_path_env if this variable is set
   // otherwise return /tmp/something/ for Unix or c:\something\ for WIN32
   BASICS_EXPORT std::string GetTmpDirByEnv( const std::string& tmp_path_env );
@@ -54,6 +57,9 @@ namespace Kernel_Utils
   // Returns True(False) if the path (not)exists
   BASICS_EXPORT bool IsExists( const std::string& path );
 
+  // Returns True(False) if the path is writable
+  BASICS_EXPORT bool IsWritable( const std::string& path );
+
   // Returns directory by path and converts it to native system format
   BASICS_EXPORT std::string GetDirByPath( const std::string& path );