📄 gfileinfo.html
字号:
<p>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="id3084908"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-COPY-NAME:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_COPY_NAME</h3><a class="indexterm" name="id3084921"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_COPY_NAME "standard::copy-name" /* string */</pre><p>A key in the "standard" namespace for getting the copy name of the file.The copy name is an optional version of the name. If availible its alwaysin UTF8, and corresponds directly to the original filename (only transcoded toUTF8). This is useful if you want to copy the file to another filesystem thatmight have a different encoding. If the filename is not a valid string in theencoding selected for the filesystem it is in then the copy name will not be set.</p><p>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="id3084971"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-ICON:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_ICON</h3><a class="indexterm" name="id3084984"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_ICON "standard::icon" /* object (GIcon) */</pre><p>A key in the "standard" namespace for getting the icon for the file.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-OBJECT:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_OBJECT</code></a>.The value for this key should contain a <a class="link" href="GIcon.html" title="GIcon"><span class="type">GIcon</span></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085031"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-CONTENT-TYPE:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</h3><a class="indexterm" name="id3085045"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "standard::content-type" /* string */</pre><p>A key in the "standard" namespace for getting the content type of the file.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>.The value for this key should contain a valid content type.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085086"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-FAST-CONTENT-TYPE:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE</h3><a class="indexterm" name="id3085099"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE "standard::fast-content-type" /* string */</pre><p>A key in the "standard" namespace for getting the fast content type.The fast content type isn't as reliable as the regular one, as itonly uses the filename to guess it, but it is faster to calculate than theregular content type.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="id3085142"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-SIZE:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_SIZE</h3><a class="indexterm" name="id3085155"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_SIZE "standard::size" /* uint64 */</pre><p>A key in the "standard" namespace for getting the file's size (in bytes).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>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085195"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-SYMLINK-TARGET:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET</h3><a class="indexterm" name="id3085209"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET "standard::symlink-target" /* byte string */</pre><p>A key in the "standard" namespace for getting the symlink target, if the fileis a symlink. 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-BYTE-STRING:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BYTE_STRING</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085250"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-TARGET-URI:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_TARGET_URI</h3><a class="indexterm" name="id3085263"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_TARGET_URI "standard::target-uri" /* string */</pre><p>A key in the "standard" namespace for getting the target URI for the file, inthe case of <a class="link" href="GFileInfo.html#G-FILE-TYPE-SHORTCUT:CAPS"><code class="literal">G_FILE_TYPE_SHORTCUT</code></a> or <a class="link" href="GFileInfo.html#G-FILE-TYPE-MOUNTABLE:CAPS"><code class="literal">G_FILE_TYPE_MOUNTABLE</code></a> files.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="id3085321"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-SORT-ORDER:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER</h3><a class="indexterm" name="id3085334"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER "standard::sort-order" /* int32 */</pre><p>A key in the "standard" namespace for setting the sort order of a file. 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-INT32:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_INT32</code></a>.An example use would be in file managers, which would use this key to set the order files are displayed. Files with smaller sort ordershould be sorted first, and files without sort order as if sort orderwas zero.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085377"></a><h3><a name="G-FILE-ATTRIBUTE-ETAG-VALUE:CAPS"></a>G_FILE_ATTRIBUTE_ETAG_VALUE</h3><a class="indexterm" name="id3085390"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_ETAG_VALUE "etag::value" /* string */</pre><p>A key in the "etag" namespace for getting the value of the file'sentity tag. 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="id3085429"></a><h3><a name="G-FILE-ATTRIBUTE-ID-FILE:CAPS"></a>G_FILE_ATTRIBUTE_ID_FILE</h3><a class="indexterm" name="id3085442"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_ID_FILE "id::file" /* string */</pre><p>A key in the "id" namespace for getting a file identifier.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>.An example use would be during listing files, to avoid recursivedirectory scanning.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085481"></a><h3><a name="G-FILE-ATTRIBUTE-ID-FILESYSTEM:CAPS"></a>G_FILE_ATTRIBUTE_ID_FILESYSTEM</h3><a class="indexterm" name="id3085495"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_ID_FILESYSTEM "id::filesystem" /* string */</pre><p>A key in the "id" namespace for getting the file system identifier.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>.An example use would be during drag and drop to see if the sourceand target are on the same filesystem (default to move) or not (defaultto copy).</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3085537"></a><h3><a name="G-FILE-ATTRIBUTE-ACCESS-CAN-READ:CAPS"></a>G_FILE_ATTRIBUTE_ACCESS_CAN_READ</h3><a class="indexterm" name="id3085551"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_ACCESS_CAN_READ "access::can-read" /* boolean */</pre><p>A key in the "access" namespace for getting read 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 read the file.</p><p></p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -