4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>File Utilities</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
<link rel="start" href="index.html" title="libxfce4util Reference Manual">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="libxfce4util Reference Manual">
8
8
<link rel="up" href="libxfce4util-utilities.html" title="Xfce Utilities">
9
9
<link rel="prev" href="libxfce4util-Resource-Config-File-Support.html" title="Resource Config File Support">
10
10
<link rel="next" href="libxfce4util-Miscellaneous-Utilities.html" title="Miscellaneous Utilities">
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.14 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="chapter" href="reference.html" title="libxfce4util Overview">
14
<link rel="chapter" href="libxfce4util-fundamentals.html" title="Xfce Fundamentals">
15
<link rel="chapter" href="libxfce4util-core.html" title="Xfce Core Application support">
16
<link rel="chapter" href="libxfce4util-utilities.html" title="Xfce Utilities">
17
<link rel="chapter" href="libxfce4util-datatypes.html" title="Xfce Data types">
19
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
20
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
25
20
<th width="100%" align="center">libxfce4util Reference Manual</th>
26
21
<td><a accesskey="n" href="libxfce4util-Miscellaneous-Utilities.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
28
<tr><td colspan="5" class="shortcuts"><nobr><a href="#libxfce4util-File-Utilities.synopsis" class="shortcut">Top</a>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#libxfce4util-File-Utilities.synopsis" class="shortcut">Top</a>
30
<a href="#libxfce4util-File-Utilities.description" class="shortcut">Description</a></nobr></td></tr>
26
<a href="#libxfce4util-File-Utilities.description" class="shortcut">Description</a>
32
<div class="refentry" lang="en">
29
<div class="refentry" title="File Utilities">
33
30
<a name="libxfce4util-File-Utilities"></a><div class="titlepage"></div>
34
31
<div class="refnamediv"><table width="100%"><tr>
39
36
<td valign="top" align="right"></td>
40
37
</tr></table></div>
41
<div class="refsynopsisdiv">
38
<div class="refsynopsisdiv" title="Synopsis">
42
39
<a name="libxfce4util-File-Utilities.synopsis"></a><h2>Synopsis</h2>
43
40
<pre class="synopsis">
45
41
#include <libxfce4util/libxfce4util.h>
48
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
49
>gboolean</a> <a class="link" href="libxfce4util-File-Utilities.html#xfce-mkdirhier" title="xfce_mkdirhier ()">xfce_mkdirhier</a> (const <a
50
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
51
>gchar</a> *whole_path,
53
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"
56
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
43
<span class="returnvalue">gboolean</span> <a class="link" href="libxfce4util-File-Utilities.html#xfce-mkdirhier" title="xfce_mkdirhier ()">xfce_mkdirhier</a> (<em class="parameter"><code>const <span class="type">gchar</span> *whole_path</code></em>,
44
<em class="parameter"><code><span class="type">gulong</span> mode</code></em>,
45
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
60
<div class="refsect1" lang="en">
48
<div class="refsect1" title="Description">
61
49
<a name="libxfce4util-File-Utilities.description"></a><h2>Description</h2>
66
<div class="refsect1" lang="en">
53
<div class="refsect1" title="Details">
67
54
<a name="libxfce4util-File-Utilities.details"></a><h2>Details</h2>
68
<div class="refsect2" lang="en">
55
<div class="refsect2" title="xfce_mkdirhier ()">
69
56
<a name="xfce-mkdirhier"></a><h3>xfce_mkdirhier ()</h3>
70
<pre class="programlisting"><a
71
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
72
>gboolean</a> xfce_mkdirhier (const <a
73
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
74
>gchar</a> *whole_path,
76
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"
79
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
80
>GError</a> **error);</pre>
57
<pre class="programlisting"><span class="returnvalue">gboolean</span> xfce_mkdirhier (<em class="parameter"><code>const <span class="type">gchar</span> *whole_path</code></em>,
58
<em class="parameter"><code><span class="type">gulong</span> mode</code></em>,
59
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
82
61
Creates the specified directory <em class="parameter"><code>whole_path</code></em>, but unlike the <code class="function">mkdir()</code>
83
62
function from the standard C library, if any of the parent directories
87
66
If the directory specified by <em class="parameter"><code>whole_path</code></em> already exists, this function
88
performs no operation and simply returns <a
89
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
90
><code class="literal">TRUE</code></a>.</p>
67
performs no operation and simply returns <code class="literal">TRUE</code>.
94
69
<div class="variablelist"><table border="0">
95
70
<col align="left" valign="top">
98
73
<td><p><span class="term"><em class="parameter"><code>whole_path</code></em> :</span></p></td>
99
<td> path to the directory to create.
74
<td>path to the directory to create.
108
83
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
109
<td> location where to store GError object to, error are returned
111
href="/usr/share/gtk-doc/html/glib/glib-File-Utilities.html#G-FILE-ERROR:CAPS"
112
><code class="literal">G_FILE_ERROR</code></a> domain.
84
<td>location where to store GError object to, error are returned
85
in the <code class="literal">G_FILE_ERROR</code> domain.
116
89
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
118
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
119
><code class="literal">TRUE</code></a> on success, else <a
120
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
121
><code class="literal">FALSE</code></a>.
90
<td> <code class="literal">TRUE</code> on success, else <code class="literal">FALSE</code>.
127
<p class="since">Since 4.2
131
<div class="refsect1" lang="en">
96
<p class="since">Since 4.2</p>
99
<div class="refsect1" title="See Also">
132
100
<a name="libxfce4util-File-Utilities.see-also"></a><h2>See Also</h2>
134
102
<a class="ulink" href="http://developer.gnome.org/doc/API/2.0/glib/glib-File-Utilities.html" target="_top">GLib File Utilities</a>