ALPSCore reference
get_dirname.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1998-2018 ALPS Collaboration. See COPYRIGHT.TXT
3  * All rights reserved. Use is subject to license terms. See LICENSE.TXT
4  * For use in publications, see ACKNOWLEDGE.TXT
5  */
6 
7 #ifndef ALPS_UTILITY_FS_GET_DIRNAME_HPP_c9685cbd35144ac3b28ae653a9d0cbc0
8 #define ALPS_UTILITY_FS_GET_DIRNAME_HPP_c9685cbd35144ac3b28ae653a9d0cbc0
9 
10 #include <alps/config.hpp>
11 #include <string>
12 
13 namespace alps { namespace fs {
18  std::string get_dirname(const std::string& path);
19 } }
20 
21 #endif /* ALPS_UTILITY_FS_GET_DIRNAME_HPP_c9685cbd35144ac3b28ae653a9d0cbc0 */
std::string get_dirname(const std::string &path)
Returns the parent direcory name of the file (removing trailing filename)