cvmfs/util/posix.cc
string GetParentPath(const string &path) {
  const string::size_type idx = path.find_last_of('/');
  if (idx != string::npos)
    return path.substr(0, idx);
  else
    return "";
}
/**
 * Gets the directory part of a path.
 */
Gets the directory part of a path.
Gets the directory part of a path .
string GetParentPath(const string &path) {
  const string::size_type idx = path.find_last_of('/');
  if (idx != string::npos)
    return path.substr(0, idx);
  else
    return "";
}
string GetParentPath ( const string & path ) { const string :: size_type idx = path . find_last_of ( ' ' ) ; if ( idx != string :: npos ) return path . substr ( 0 , idx ) ; else return " " ; }
Gets the directory part of a path.
Gets the directory part of a path .