📄 gfileinfo.html
字号:
</div><hr><div class="refsect2" lang="en"><a name="id3085599"></a><h3><a name="G-FILE-ATTRIBUTE-ACCESS-CAN-WRITE:CAPS"></a>G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE</h3><a class="indexterm" name="id3085614"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE "access::can-write" /* boolean */</pre><p>A key in the "access" namespace for getting write privileges.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BOOLEAN:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BOOLEAN</code></a>.This attribute will be <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the user is able to write to the file.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085662"></a><h3><a name="G-FILE-ATTRIBUTE-ACCESS-CAN-EXECUTE:CAPS"></a>G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE</h3><a class="indexterm" name="id3085676"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE "access::can-execute" /* boolean */</pre><p>A key in the "access" namespace for getting execution privileges.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BOOLEAN:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BOOLEAN</code></a>.This attribute will be <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the user is able to execute the file.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085725"></a><h3><a name="G-FILE-ATTRIBUTE-ACCESS-CAN-DELETE:CAPS"></a>G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE</h3><a class="indexterm" name="id3085739"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE "access::can-delete" /* boolean */</pre><p>A key in the "access" namespace for checking deletion privileges.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BOOLEAN:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BOOLEAN</code></a>.This attribute will be <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the user is able to delete the file.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085787"></a><h3><a name="G-FILE-ATTRIBUTE-ACCESS-CAN-TRASH:CAPS"></a>G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH</h3><a class="indexterm" name="id3085802"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH "access::can-trash" /* boolean */</pre><p>A key in the "access" namespace for checking trashing privileges.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BOOLEAN:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BOOLEAN</code></a>.This attribute will be <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the user is able to move the file to the trash.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085851"></a><h3><a name="G-FILE-ATTRIBUTE-ACCESS-CAN-RENAME:CAPS"></a>G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME</h3><a class="indexterm" name="id3085864"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME "access::can-rename" /* boolean */ </pre><p>A key in the "access" namespace for checking renaming privileges.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BOOLEAN:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BOOLEAN</code></a>.This attribute will be <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the user is able to rename the file.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085913"></a><h3><a name="G-FILE-ATTRIBUTE-MOUNTABLE-CAN-MOUNT:CAPS"></a>G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT</h3><a class="indexterm" name="id3085926"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT "mountable::can-mount" /* boolean */</pre><p>A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) is mountable.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BOOLEAN:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BOOLEAN</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085967"></a><h3><a name="G-FILE-ATTRIBUTE-MOUNTABLE-CAN-UNMOUNT:CAPS"></a>G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT</h3><a class="indexterm" name="id3085981"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT "mountable::can-unmount" /* boolean */</pre><p>A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) is unmountable.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BOOLEAN:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BOOLEAN</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3125824"></a><h3><a name="G-FILE-ATTRIBUTE-MOUNTABLE-CAN-EJECT:CAPS"></a>G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT</h3><a class="indexterm" name="id3125838"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT "mountable::can-eject" /* boolean */</pre><p>A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be ejected.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BOOLEAN:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BOOLEAN</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3125878"></a><h3><a name="G-FILE-ATTRIBUTE-MOUNTABLE-UNIX-DEVICE:CAPS"></a>G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE</h3><a class="indexterm" name="id3125892"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE "mountable::unix-device" /* uint32 */</pre><p>A key in the "mountable" namespace for getting the unix device.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-UINT32:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_UINT32</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3125932"></a><h3><a name="G-FILE-ATTRIBUTE-MOUNTABLE-HAL-UDI:CAPS"></a>G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI</h3><a class="indexterm" name="id3125946"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI "mountable::hal-udi" /* string */</pre><p>A key in the "mountable" namespace for getting the HAL UDI for the mountablefile. Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-STRING:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_STRING</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3125986"></a><h3><a name="G-FILE-ATTRIBUTE-TIME-MODIFIED:CAPS"></a>G_FILE_ATTRIBUTE_TIME_MODIFIED</h3><a class="indexterm" name="id3125999"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_TIME_MODIFIED "time::modified" /* uint64 */</pre><p>A key in the "time" namespace for getting the time the file was lastmodified. Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-UINT64:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_UINT64</code></a>, and contains the UNIX time since the file was modified.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3126040"></a><h3><a name="G-FILE-ATTRIBUTE-TIME-MODIFIED-USEC:CAPS"></a>G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC</h3><a class="indexterm" name="id3126053"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC "time::modified-usec" /* uint32 */</pre><p>A key in the "time" namespace for getting the miliseconds of the timethe file was last modified. This should be used in conjunction with <a class="link" href="GFileInfo.html#G-FILE-ATTRIBUTE-TIME-MODIFIED:CAPS"><span class="type">G_FILE_ATTRIBUTE_TIME_MODIFIED</span></a>. Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-UINT32:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_UINT32</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3126102"></a><h3><a name="G-FILE-ATTRIBUTE-TIME-ACCESS:CAPS"></a>G_FILE_ATTRIBUTE_TIME_ACCESS</h3><a class="indexterm" name="id3126115"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_TIME_ACCESS "time::access" /* uint64 */</pre><p>A key in the "time" namespace for getting the time the file was lastaccessed. Correspondi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -