The following commit has been merged in the master branch:
commit 70edaf6c3f1028f41eaaec051cad9aae8d0e7e3d
Author: Andrei Zavada <[email protected]>
Date:   Mon Jan 21 02:04:32 2013 +0200

    new function fs::dirname

diff --git a/src/common/fs.hh b/src/common/fs.hh
index f264674..cb9a99e 100644
--- a/src/common/fs.hh
+++ b/src/common/fs.hh
@@ -51,6 +51,15 @@ path_elements( const T& _filename)
        return agh::str::tokens( _filename, "/");
 }
 
+template<class T>
+string
+dirname( const T& _filename)
+{
+       auto ee = agh::str::tokens( _filename, "/");
+       ee.pop_back();
+       return agh::str::join( ee, "/");
+}
+
 
 
 

-- 
Sleep experiment manager

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to