Logo Search packages:      
Sourcecode: ardour version File versions

std::string Glib::path_get_dirname ( const std::string &  filename  ) 

Gets the directory components of a file name. If the file name has no directory components "." is returned.

Parameters:
filename The name of the file.
Returns:
The directory components of the file.

Definition at line 139 of file miscutils.cc.

{
  const ScopedPtr<char> buf (g_path_get_dirname(filename.c_str()));
  return std::string(buf.get());
}


Generated by  Doxygen 1.6.0   Back to index