mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-27 18:10:03 +01:00
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:
parent
da512adc34
commit
ec5d6ab63d
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user