Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GFileCreateFlags |
Enum : | FileCreateFlags |
Properties | |
---|---|
guint32 Gio.FileCreateFlags.NONE : 0
|
|
guint32 Gio.FileCreateFlags.PRIVATE : 1
|
|
guint32 Gio.FileCreateFlags.REPLACE_DESTINATION : 2
|
None |
None |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gio.File
Method |
Gets an output stream for appending data to the file.
|
Gio.File
Method |
append_to_async
(FileCreateFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data)
:
none
Asynchronously opens file for appending.
|
Gio.File
Method |
Creates a new file and returns an output stream for writing to it.
|
Gio.File
Method |
create_async
(FileCreateFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data)
:
none
Asynchronously creates a new file and returns an output stream for writing to it.
|
Gio.File
Method |
Creates a new file and returns a stream for reading and writing to it.
|
Gio.File
Method |
create_readwrite_async
(FileCreateFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data)
:
none
Asynchronously creates a new file and returns a stream for reading and
writing to it. |
Gio.File
Method |
replace
(String etag, gboolean make_backup, FileCreateFlags flags, Cancellable cancellable)
:
Gio.FileOutputStream
Returns an output stream for overwriting the file, possibly
creating a backup copy of the file first. |
Gio.File
Method |
replace_async
(String etag, gboolean make_backup, FileCreateFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data)
:
none
Asynchronously overwrites the file, replacing the contents, possibly
creating a backup copy of the file first. |
Gio.File
Method |
replace_contents
(String contents, guint32 length, String etag, gboolean make_backup, FileCreateFlags flags, Object out_values, Cancellable cancellable)
:
gboolean
Replaces the contents of file with contents of length bytes.
|
Gio.File
Method |
replace_contents_async
(String contents, guint32 length, String etag, gboolean make_backup, FileCreateFlags flags, Cancellable cancellable, Function callback, void* user_data)
:
none
Starts an asynchronous replacement of file with the given
current entity tag. |
Gio.File
Method |
replace_readwrite
(String etag, gboolean make_backup, FileCreateFlags flags, Cancellable cancellable)
:
Gio.FileIOStream
Returns an output stream for overwriting the file in readwrite mode,
possibly creating a backup copy of the file first. |
Gio.File
Method |
replace_readwrite_async
(String etag, gboolean make_backup, FileCreateFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data)
:
none
Asynchronously overwrites the file in read-write mode, replacing the
contents, possibly creating a backup copy of the file first. |