GFileIface

An interface for writing VFS file handles.

struct GFileIface {}

Members

Variables

QuerySettableAttributesAsync
void function() QuerySettableAttributesAsync;

Asynchronously gets a list of #GFileAttributeInfos that can be set.

QuerySettableAttributesFinish
void function() QuerySettableAttributesFinish;

Finishes asynchronously querying settable attributes.

QueryWritableNamespacesAsync
void function() QueryWritableNamespacesAsync;

Asynchronously gets a list of #GFileAttributeInfo namespaces that are writable.

QueryWritableNamespacesFinish
void function() QueryWritableNamespacesFinish;

Finishes asynchronously querying the writable namespaces.

appendTo
GFileOutputStream* function(GFile* file, GFileCreateFlags flags, GCancellable* cancellable, GError** _err) appendTo;

Writes to the end of a file.

appendToAsync
void function(GFile* file, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) appendToAsync;

Asynchronously writes to the end of a file.

appendToFinish
GFileOutputStream* function(GFile* file, GAsyncResult* res, GError** _err) appendToFinish;

Finishes an asynchronous file append operation.

copy
bool function(GFile* source, GFile* destination, GFileCopyFlags flags, GCancellable* cancellable, GFileProgressCallback progressCallback, void* progressCallbackData, GError** _err) copy;

Copies a file. null if copying is unsupported, which will cause gio.file.File to use a fallback copy method where it reads from the source and writes to the destination.

copyAsync
void function(GFile* source, GFile* destination, GFileCopyFlags flags, int ioPriority, GCancellable* cancellable, GFileProgressCallback progressCallback, void* progressCallbackData, GAsyncReadyCallback callback, void* userData) copyAsync;

Asynchronously copies a file.

copyFinish
bool function(GFile* file, GAsyncResult* res, GError** _err) copyFinish;

Finishes an asynchronous copy operation.

create
GFileOutputStream* function(GFile* file, GFileCreateFlags flags, GCancellable* cancellable, GError** _err) create;

Creates a new file.

createAsync
void function(GFile* file, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) createAsync;

Asynchronously creates a file.

createFinish
GFileOutputStream* function(GFile* file, GAsyncResult* res, GError** _err) createFinish;

Finishes asynchronously creating a file.

createReadwrite
GFileIOStream* function(GFile* file, GFileCreateFlags flags, GCancellable* cancellable, GError** _err) createReadwrite;

Creates file read/write. Since 2.22.

createReadwriteAsync
void function(GFile* file, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) createReadwriteAsync;

Asynchronously creates file read/write. Since 2.22.

createReadwriteFinish
GFileIOStream* function(GFile* file, GAsyncResult* res, GError** _err) createReadwriteFinish;

Finishes an asynchronous creates read/write. Since 2.22.

deleteFile
bool function(GFile* file, GCancellable* cancellable, GError** _err) deleteFile;

Deletes a file.

deleteFileAsync
void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) deleteFileAsync;

Asynchronously deletes a file.

deleteFileFinish
bool function(GFile* file, GAsyncResult* result, GError** _err) deleteFileFinish;

Finishes an asynchronous delete.

dup
GFile* function(GFile* file) dup;

Duplicates a #GFile.

ejectMountable
void function(GFile* file, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) ejectMountable;

Ejects a mountable.

ejectMountableFinish
bool function(GFile* file, GAsyncResult* result, GError** _err) ejectMountableFinish;

Finishes an eject operation.

ejectMountableWithOperation
void function(GFile* file, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) ejectMountableWithOperation;

Ejects a mountable object using a #GMountOperation. Since 2.22.

ejectMountableWithOperationFinish
bool function(GFile* file, GAsyncResult* result, GError** _err) ejectMountableWithOperationFinish;

Finishes an eject operation using a #GMountOperation. Since 2.22.

enumerateChildren
GFileEnumerator* function(GFile* file, const(char)* attributes, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** _err) enumerateChildren;

Gets a #GFileEnumerator with the children of a #GFile.

enumerateChildrenAsync
void function(GFile* file, const(char)* attributes, GFileQueryInfoFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) enumerateChildrenAsync;

Asynchronously gets a #GFileEnumerator with the children of a #GFile.

enumerateChildrenFinish
GFileEnumerator* function(GFile* file, GAsyncResult* res, GError** _err) enumerateChildrenFinish;

Finishes asynchronously enumerating the children.

equal
bool function(GFile* file1, GFile* file2) equal;

Checks equality of two given #GFiles.

findEnclosingMount
GMount* function(GFile* file, GCancellable* cancellable, GError** _err) findEnclosingMount;

Gets a #GMount for the #GFile.

findEnclosingMountAsync
void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) findEnclosingMountAsync;

Asynchronously gets the #GMount for a #GFile.

findEnclosingMountFinish
GMount* function(GFile* file, GAsyncResult* res, GError** _err) findEnclosingMountFinish;

Finishes asynchronously getting the volume.

gIface
GTypeInterface gIface;

The parent interface.

getBasename
char* function(GFile* file) getBasename;

Gets the basename for a given #GFile.

getChildForDisplayName
GFile* function(GFile* file, const(char)* displayName, GError** _err) getChildForDisplayName;

Gets the child #GFile for a given display name.

getParent
GFile* function(GFile* file) getParent;

Gets the parent directory for the #GFile.

getParseName
char* function(GFile* file) getParseName;

Gets the parsed name for the #GFile.

getPath
char* function(GFile* file) getPath;

Gets the current path within a #GFile.

getRelativePath
char* function(GFile* parent, GFile* descendant) getRelativePath;

Gets the path for a #GFile relative to a given path.

getUri
char* function(GFile* file) getUri;

Gets a URI for the path within a #GFile.

getUriScheme
char* function(GFile* file) getUriScheme;

Gets the URI scheme for a #GFile.

hasUriScheme
bool function(GFile* file, const(char)* uriScheme) hasUriScheme;

Checks to see if a #GFile has a given URI scheme.

hash
uint function(GFile* file) hash;

Creates a hash of a #GFile.

isNative
bool function(GFile* file) isNative;

Checks to see if a file is native to the system.

makeDirectory
bool function(GFile* file, GCancellable* cancellable, GError** _err) makeDirectory;

Makes a directory.

makeDirectoryAsync
void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) makeDirectoryAsync;

Asynchronously makes a directory.

makeDirectoryFinish
bool function(GFile* file, GAsyncResult* result, GError** _err) makeDirectoryFinish;

Finishes making a directory asynchronously.

makeSymbolicLink
bool function(GFile* file, const(char)* symlinkValue, GCancellable* cancellable, GError** _err) makeSymbolicLink;

Makes a symbolic link. null if symbolic links are unsupported.

makeSymbolicLinkAsync
void function(GFile* file, const(char)* symlinkValue, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) makeSymbolicLinkAsync;

Asynchronously makes a symbolic link

makeSymbolicLinkFinish
bool function(GFile* file, GAsyncResult* result, GError** _err) makeSymbolicLinkFinish;

Finishes making a symbolic link asynchronously.

measureDiskUsage
bool function(GFile* file, GFileMeasureFlags flags, GCancellable* cancellable, GFileMeasureProgressCallback progressCallback, void* progressData, ulong* diskUsage, ulong* numDirs, ulong* numFiles, GError** _err) measureDiskUsage;

Recursively measures the disk usage of @file. Since 2.38

measureDiskUsageAsync
void function(GFile* file, GFileMeasureFlags flags, int ioPriority, GCancellable* cancellable, GFileMeasureProgressCallback progressCallback, void* progressData, GAsyncReadyCallback callback, void* userData) measureDiskUsageAsync;

Asynchronously recursively measures the disk usage of @file. Since 2.38

measureDiskUsageFinish
bool function(GFile* file, GAsyncResult* result, ulong* diskUsage, ulong* numDirs, ulong* numFiles, GError** _err) measureDiskUsageFinish;

Finishes an asynchronous recursive measurement of the disk usage of @file. Since 2.38

monitorDir
GFileMonitor* function(GFile* file, GFileMonitorFlags flags, GCancellable* cancellable, GError** _err) monitorDir;

Creates a #GFileMonitor for the location.

monitorFile
GFileMonitor* function(GFile* file, GFileMonitorFlags flags, GCancellable* cancellable, GError** _err) monitorFile;

Creates a #GFileMonitor for the location.

mountEnclosingVolume
void function(GFile* location, GMountMountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) mountEnclosingVolume;

Mounts a specified location.

mountEnclosingVolumeFinish
bool function(GFile* location, GAsyncResult* result, GError** _err) mountEnclosingVolumeFinish;

Finishes mounting a specified location.

mountMountable
void function(GFile* file, GMountMountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) mountMountable;

Mounts a mountable object.

mountMountableFinish
GFile* function(GFile* file, GAsyncResult* result, GError** _err) mountMountableFinish;

Finishes a mounting operation.

move
bool function(GFile* source, GFile* destination, GFileCopyFlags flags, GCancellable* cancellable, GFileProgressCallback progressCallback, void* progressCallbackData, GError** _err) move;

Moves a file.

moveAsync
void function(GFile* source, GFile* destination, GFileCopyFlags flags, int ioPriority, GCancellable* cancellable, GFileProgressCallback progressCallback, void* progressCallbackData, GAsyncReadyCallback callback, void* userData) moveAsync;

Asynchronously moves a file. Since: 2.72

moveFinish
bool function(GFile* file, GAsyncResult* result, GError** _err) moveFinish;

Finishes an asynchronous move operation. Since: 2.72

openReadwrite
GFileIOStream* function(GFile* file, GCancellable* cancellable, GError** _err) openReadwrite;

Open file read/write. Since 2.22.

openReadwriteAsync
void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) openReadwriteAsync;

Asynchronously opens file read/write. Since 2.22.

openReadwriteFinish
GFileIOStream* function(GFile* file, GAsyncResult* res, GError** _err) openReadwriteFinish;

Finishes an asynchronous open read/write. Since 2.22.

pollMountable
void function(GFile* file, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) pollMountable;

Polls a mountable object for media changes. Since 2.22.

pollMountableFinish
bool function(GFile* file, GAsyncResult* result, GError** _err) pollMountableFinish;

Finishes a poll operation for media changes. Since 2.22.

prefixMatches
bool function(GFile* prefix, GFile* file) prefixMatches;

Checks whether a #GFile contains a specified file.

queryFilesystemInfo
GFileInfo* function(GFile* file, const(char)* attributes, GCancellable* cancellable, GError** _err) queryFilesystemInfo;

Gets a #GFileInfo for the file system #GFile is on.

queryFilesystemInfoAsync
void function(GFile* file, const(char)* attributes, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) queryFilesystemInfoAsync;

Asynchronously gets a #GFileInfo for the file system #GFile is on.

queryFilesystemInfoFinish
GFileInfo* function(GFile* file, GAsyncResult* res, GError** _err) queryFilesystemInfoFinish;

Finishes asynchronously getting the file system info.

queryInfo
GFileInfo* function(GFile* file, const(char)* attributes, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** _err) queryInfo;

Gets the #GFileInfo for a #GFile.

queryInfoAsync
void function(GFile* file, const(char)* attributes, GFileQueryInfoFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) queryInfoAsync;

Asynchronously gets the #GFileInfo for a #GFile.

queryInfoFinish
GFileInfo* function(GFile* file, GAsyncResult* res, GError** _err) queryInfoFinish;

Finishes an asynchronous query info operation.

querySettableAttributes
GFileAttributeInfoList* function(GFile* file, GCancellable* cancellable, GError** _err) querySettableAttributes;

Returns a list of #GFileAttributeInfos that can be set.

queryWritableNamespaces
GFileAttributeInfoList* function(GFile* file, GCancellable* cancellable, GError** _err) queryWritableNamespaces;

Returns a list of #GFileAttributeInfo namespaces that are writable.

readAsync
void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) readAsync;

Asynchronously reads a file.

readFinish
GFileInputStream* function(GFile* file, GAsyncResult* res, GError** _err) readFinish;

Finishes asynchronously reading a file.

readFn
GFileInputStream* function(GFile* file, GCancellable* cancellable, GError** _err) readFn;

Reads a file asynchronously.

replace
GFileOutputStream* function(GFile* file, const(char)* etag, bool makeBackup, GFileCreateFlags flags, GCancellable* cancellable, GError** _err) replace;

Replaces the contents of a file.

replaceAsync
void function(GFile* file, const(char)* etag, bool makeBackup, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) replaceAsync;

Asynchronously replaces the contents of a file.

replaceFinish
GFileOutputStream* function(GFile* file, GAsyncResult* res, GError** _err) replaceFinish;

Finishes asynchronously replacing a file.

replaceReadwrite
GFileIOStream* function(GFile* file, const(char)* etag, bool makeBackup, GFileCreateFlags flags, GCancellable* cancellable, GError** _err) replaceReadwrite;

Replaces file read/write. Since 2.22.

replaceReadwriteAsync
void function(GFile* file, const(char)* etag, bool makeBackup, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) replaceReadwriteAsync;

Asynchronously replaces file read/write. Since 2.22.

replaceReadwriteFinish
GFileIOStream* function(GFile* file, GAsyncResult* res, GError** _err) replaceReadwriteFinish;

Finishes an asynchronous replace read/write. Since 2.22.

resolveRelativePath
GFile* function(GFile* file, const(char)* relativePath) resolveRelativePath;

Resolves a relative path for a #GFile to an absolute path.

setAttribute
bool function(GFile* file, const(char)* attribute, GFileAttributeType type, void* valueP, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** _err) setAttribute;

Sets a #GFileAttributeInfo.

setAttributesAsync
void function(GFile* file, GFileInfo* info, GFileQueryInfoFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) setAttributesAsync;

Asynchronously sets a file's attributes.

setAttributesFinish
bool function(GFile* file, GAsyncResult* result, GFileInfo** info, GError** _err) setAttributesFinish;

Finishes setting a file's attributes asynchronously.

setAttributesFromInfo
bool function(GFile* file, GFileInfo* info, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** _err) setAttributesFromInfo;

Sets a #GFileAttributeInfo with information from a #GFileInfo.

setDisplayName
GFile* function(GFile* file, const(char)* displayName, GCancellable* cancellable, GError** _err) setDisplayName;

Sets the display name for a #GFile.

setDisplayNameAsync
void function(GFile* file, const(char)* displayName, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) setDisplayNameAsync;

Asynchronously sets a #GFile's display name.

setDisplayNameFinish
GFile* function(GFile* file, GAsyncResult* res, GError** _err) setDisplayNameFinish;

Finishes asynchronously setting a #GFile's display name.

startMountable
void function(GFile* file, GDriveStartFlags flags, GMountOperation* startOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) startMountable;

Starts a mountable object. Since 2.22.

startMountableFinish
bool function(GFile* file, GAsyncResult* result, GError** _err) startMountableFinish;

Finishes a start operation. Since 2.22.

stopMountable
void function(GFile* file, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) stopMountable;

Stops a mountable. Since 2.22.

stopMountableFinish
bool function(GFile* file, GAsyncResult* result, GError** _err) stopMountableFinish;

Finishes a stop operation. Since 2.22.

supportsThreadContexts
bool supportsThreadContexts;

a boolean that indicates whether the #GFile implementation supports thread-default contexts. Since 2.22.

trash
bool function(GFile* file, GCancellable* cancellable, GError** _err) trash;

Sends a #GFile to the Trash location.

trashAsync
void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) trashAsync;

Asynchronously sends a #GFile to the Trash location.

trashFinish
bool function(GFile* file, GAsyncResult* result, GError** _err) trashFinish;

Finishes an asynchronous file trashing operation.

unmountMountable
void function(GFile* file, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) unmountMountable;

Unmounts a mountable object.

unmountMountableFinish
bool function(GFile* file, GAsyncResult* result, GError** _err) unmountMountableFinish;

Finishes an unmount operation.

unmountMountableWithOperation
void function(GFile* file, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) unmountMountableWithOperation;

Unmounts a mountable object using a #GMountOperation. Since 2.22.

unmountMountableWithOperationFinish
bool function(GFile* file, GAsyncResult* result, GError** _err) unmountMountableWithOperationFinish;

Finishes an unmount operation using a #GMountOperation. Since 2.22.