Top | ![]() |
![]() |
![]() |
![]() |
GKeyFile * thunar_g_file_query_key_file (GFile *file
,GCancellable *cancellable
,GError **error
);
gboolean thunar_g_file_write_key_file (GFile *file
,GKeyFile *key_file
,GCancellable *cancellable
,GError **error
);
const gchar *
thunar_g_file_guess_device_type (GFile *file
);
Returns : (transfer none) (nullable): the string of the device type.
gchar *
thunar_g_file_get_display_name_remote (GFile *file
);
gboolean
thunar_g_vfs_is_uri_scheme_supported (const gchar *scheme
);
gboolean thunar_g_file_get_free_space (GFile *file
,guint64 *fs_free_return
,guint64 *fs_size_return
);
Determines the amount of free space of the volume on
which file
resides. Returns TRUE
if the amount of
free space was determined successfully and placed into
free_space_return
, else FALSE
will be returned.
gchar * thunar_g_file_get_free_space_string (GFile *file
,gboolean file_size_binary
);
gboolean thunar_g_file_copy (GFile *source
,GFile *destination
,GFileCopyFlags flags
,gboolean use_partial
,GCancellable *cancellable
,GFileProgressCallback progress_callback
,gpointer progress_callback_data
,GError **error
);
Calls g_file_copy()
if use_partial
is not enabled.
If enabled, copies files to *.partial~ first and then
renames *.partial~ into its original name.
source |
input GFile |
|
destination |
destination GFile |
|
flags |
set of GFileCopyFlags |
|
use_partial |
option to use *.partial~ |
|
cancellable |
optional GCancellable object. |
[nullable] |
progress_callback |
function to callback with progress information. |
[nullable][scope call] |
progress_callback_data |
user data to pass to |
[clousure] |
error |
GError to set on error. |
[nullable] |
gboolean thunar_g_file_compare_checksum (GFile *file_a
,GFile *file_b
,GCancellable *cancellable
,GError **error
);
Compare file_a
and file_b
with checksum.
GList *
thunar_g_file_list_new_from_string (const gchar *string
);
Splits an URI list conforming to the text/uri-list mime type defined in RFC 2483 into individual URIs, discarding any comments and whitespace. The resulting list will hold one GFile for each URI.
If string
contains no URIs, this function
will return NULL
.
gchar **
thunar_g_file_list_to_stringv (GList *list
);
Free the returned value using g_strfreev()
when you
are done with it. Useful for gtk_selection_data_set_uris.
GList *
thunar_g_file_list_get_parents (GList *list
);
Collects all parent folders of the passed files
If multiple files share the same parent, the parent will only be added once to the returned list.
Each list element of the returned list needs to be freed with g_object_unref()
after use.
gboolean thunar_g_file_is_descendant (GFile *descendant
,GFile *ancestor
);
Check if descendant
is a subdirectory of ancestor
.
descendant
== ancestor
also counts.
#define thunar_g_list_append_deep(list,object) g_list_append (list, g_object_ref (G_OBJECT (object)))
#define thunar_g_list_prepend_deep(list,object) g_list_prepend (list, g_object_ref (G_OBJECT (object)))
gboolean thunar_g_app_info_launch (GAppInfo *info
,GFile *working_directory
,GList *path_list
,GAppLaunchContext *context
,GError **error
);