gfileutils: Add examples to g_path_get_dirname() documentation

See https://gitlab.gnome.org/GNOME/glib/merge_requests/326.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2018-10-23 14:38:13 +13:00
parent da512adc34
commit ec5d6ab63d

View File

@ -2387,7 +2387,9 @@ g_path_get_basename (const gchar *file_name)
* g_path_get_dirname:
* @file_name: (type filename): the name of the file
*
* Gets the directory components of a file name.
* Gets the directory components of a file name. For example, the directory
* component of `/usr/bin/test` is `/usr/bin`. The directory component of `/`
* is `/`.
*
* If the file name has no directory components "." is returned.
* The returned string should be freed when no longer needed.