Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gio.Objects.FileInfo
Contents
- Exported types
- Methods
- clearStatus
- copyInto
- dup
- getAccessDateTime
- getAttributeAsString
- getAttributeBoolean
- getAttributeByteString
- getAttributeData
- getAttributeFilePath
- getAttributeInt32
- getAttributeInt64
- getAttributeObject
- getAttributeStatus
- getAttributeString
- getAttributeStringv
- getAttributeType
- getAttributeUint32
- getAttributeUint64
- getContentType
- getCreationDateTime
- getDeletionDate
- getDisplayName
- getEditName
- getEtag
- getFileType
- getIcon
- getIsBackup
- getIsHidden
- getIsSymlink
- getModificationDateTime
- getModificationTime
- getName
- getSize
- getSortOrder
- getSymbolicIcon
- getSymlinkTarget
- hasAttribute
- hasNamespace
- listAttributes
- new
- removeAttribute
- setAccessDateTime
- setAttribute
- setAttributeBoolean
- setAttributeByteString
- setAttributeFilePath
- setAttributeInt32
- setAttributeInt64
- setAttributeMask
- setAttributeObject
- setAttributeStatus
- setAttributeString
- setAttributeStringv
- setAttributeUint32
- setAttributeUint64
- setContentType
- setCreationDateTime
- setDisplayName
- setEditName
- setFileType
- setIcon
- setIsHidden
- setIsSymlink
- setModificationDateTime
- setModificationTime
- setName
- setSize
- setSortOrder
- setSymbolicIcon
- setSymlinkTarget
- unsetAttributeMask
Description
Stores information about a file system object referenced by a File
.
Functionality for manipulating basic metadata for files. GFileInfo
implements methods for getting information that all files should
contain, and allows for manipulation of extended attributes.
See the file attributes document for more information on how GIO handles file attributes.
To obtain a GFileInfo
for a File
, use
fileQueryInfo
(or its async variant). To obtain a GFileInfo
for a file input or output stream, use fileInputStreamQueryInfo
or fileOutputStreamQueryInfo
(or their async variants).
To change the actual attributes of a file, you should then set the
attribute in the GFileInfo
and call fileSetAttributesFromInfo
or fileSetAttributesAsync
on a GFile
.
However, not all attributes can be changed in the file. For instance,
the actual size of a file cannot be changed via fileInfoSetSize
.
You may call fileQuerySettableAttributes
and
fileQueryWritableNamespaces
to discover the settable attributes
of a particular file at runtime.
The direct accessors, such as fileInfoGetName
, are slightly more
optimized than the generic attribute accessors, such as
fileInfoGetAttributeByteString
.This optimization will matter
only if calling the API in a tight loop.
It is an error to call these accessors without specifying their required file
attributes when creating the GFileInfo
. Use
fileInfoHasAttribute
or fileInfoListAttributes
to check what attributes are specified for a GFileInfo
.
FileAttributeMatcher
allows for searching through a GFileInfo
for attributes.
Synopsis
- newtype FileInfo = FileInfo (ManagedPtr FileInfo)
- class (GObject o, IsDescendantOf FileInfo o) => IsFileInfo o
- toFileInfo :: (MonadIO m, IsFileInfo o) => o -> m FileInfo
- type family ResolveFileInfoMethod (t :: Symbol) o where ...
- data FileInfoClearStatusMethodInfo
- fileInfoClearStatus :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m ()
- data FileInfoCopyIntoMethodInfo
- fileInfoCopyInto :: (HasCallStack, MonadIO m, IsFileInfo a, IsFileInfo b) => a -> b -> m ()
- data FileInfoDupMethodInfo
- fileInfoDup :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m FileInfo
- data FileInfoGetAccessDateTimeMethodInfo
- fileInfoGetAccessDateTime :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m (Maybe DateTime)
- data FileInfoGetAttributeAsStringMethodInfo
- fileInfoGetAttributeAsString :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m (Maybe Text)
- data FileInfoGetAttributeBooleanMethodInfo
- fileInfoGetAttributeBoolean :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m Bool
- data FileInfoGetAttributeByteStringMethodInfo
- fileInfoGetAttributeByteString :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m (Maybe Text)
- data FileInfoGetAttributeDataMethodInfo
- fileInfoGetAttributeData :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m (Bool, FileAttributeType, Ptr (), FileAttributeStatus)
- data FileInfoGetAttributeFilePathMethodInfo
- fileInfoGetAttributeFilePath :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m (Maybe [Char])
- data FileInfoGetAttributeInt32MethodInfo
- fileInfoGetAttributeInt32 :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m Int32
- data FileInfoGetAttributeInt64MethodInfo
- fileInfoGetAttributeInt64 :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m Int64
- data FileInfoGetAttributeObjectMethodInfo
- fileInfoGetAttributeObject :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m (Maybe Object)
- data FileInfoGetAttributeStatusMethodInfo
- fileInfoGetAttributeStatus :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m FileAttributeStatus
- data FileInfoGetAttributeStringMethodInfo
- fileInfoGetAttributeString :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m (Maybe Text)
- data FileInfoGetAttributeStringvMethodInfo
- fileInfoGetAttributeStringv :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m (Maybe [Text])
- data FileInfoGetAttributeTypeMethodInfo
- fileInfoGetAttributeType :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m FileAttributeType
- data FileInfoGetAttributeUint32MethodInfo
- fileInfoGetAttributeUint32 :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m Word32
- data FileInfoGetAttributeUint64MethodInfo
- fileInfoGetAttributeUint64 :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m Word64
- data FileInfoGetContentTypeMethodInfo
- fileInfoGetContentType :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m (Maybe Text)
- data FileInfoGetCreationDateTimeMethodInfo
- fileInfoGetCreationDateTime :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m (Maybe DateTime)
- data FileInfoGetDeletionDateMethodInfo
- fileInfoGetDeletionDate :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m (Maybe DateTime)
- data FileInfoGetDisplayNameMethodInfo
- fileInfoGetDisplayName :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m Text
- data FileInfoGetEditNameMethodInfo
- fileInfoGetEditName :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m Text
- data FileInfoGetEtagMethodInfo
- fileInfoGetEtag :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m (Maybe Text)
- data FileInfoGetFileTypeMethodInfo
- fileInfoGetFileType :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m FileType
- data FileInfoGetIconMethodInfo
- fileInfoGetIcon :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m (Maybe Icon)
- data FileInfoGetIsBackupMethodInfo
- fileInfoGetIsBackup :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m Bool
- data FileInfoGetIsHiddenMethodInfo
- fileInfoGetIsHidden :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m Bool
- data FileInfoGetIsSymlinkMethodInfo
- fileInfoGetIsSymlink :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m Bool
- data FileInfoGetModificationDateTimeMethodInfo
- fileInfoGetModificationDateTime :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m (Maybe DateTime)
- data FileInfoGetModificationTimeMethodInfo
- fileInfoGetModificationTime :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m TimeVal
- data FileInfoGetNameMethodInfo
- fileInfoGetName :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m [Char]
- data FileInfoGetSizeMethodInfo
- fileInfoGetSize :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m Int64
- data FileInfoGetSortOrderMethodInfo
- fileInfoGetSortOrder :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m Int32
- data FileInfoGetSymbolicIconMethodInfo
- fileInfoGetSymbolicIcon :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m (Maybe Icon)
- data FileInfoGetSymlinkTargetMethodInfo
- fileInfoGetSymlinkTarget :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m (Maybe [Char])
- data FileInfoHasAttributeMethodInfo
- fileInfoHasAttribute :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m Bool
- data FileInfoHasNamespaceMethodInfo
- fileInfoHasNamespace :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m Bool
- data FileInfoListAttributesMethodInfo
- fileInfoListAttributes :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Maybe Text -> m (Maybe [Text])
- fileInfoNew :: (HasCallStack, MonadIO m) => m FileInfo
- data FileInfoRemoveAttributeMethodInfo
- fileInfoRemoveAttribute :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m ()
- data FileInfoSetAccessDateTimeMethodInfo
- fileInfoSetAccessDateTime :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> DateTime -> m ()
- data FileInfoSetAttributeMethodInfo
- fileInfoSetAttribute :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> FileAttributeType -> Ptr () -> m ()
- data FileInfoSetAttributeBooleanMethodInfo
- fileInfoSetAttributeBoolean :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> Bool -> m ()
- data FileInfoSetAttributeByteStringMethodInfo
- fileInfoSetAttributeByteString :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> Text -> m ()
- data FileInfoSetAttributeFilePathMethodInfo
- fileInfoSetAttributeFilePath :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> [Char] -> m ()
- data FileInfoSetAttributeInt32MethodInfo
- fileInfoSetAttributeInt32 :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> Int32 -> m ()
- data FileInfoSetAttributeInt64MethodInfo
- fileInfoSetAttributeInt64 :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> Int64 -> m ()
- data FileInfoSetAttributeMaskMethodInfo
- fileInfoSetAttributeMask :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> FileAttributeMatcher -> m ()
- data FileInfoSetAttributeObjectMethodInfo
- fileInfoSetAttributeObject :: (HasCallStack, MonadIO m, IsFileInfo a, IsObject b) => a -> Text -> b -> m ()
- data FileInfoSetAttributeStatusMethodInfo
- fileInfoSetAttributeStatus :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> FileAttributeStatus -> m Bool
- data FileInfoSetAttributeStringMethodInfo
- fileInfoSetAttributeString :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> Text -> m ()
- data FileInfoSetAttributeStringvMethodInfo
- fileInfoSetAttributeStringv :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> [Text] -> m ()
- data FileInfoSetAttributeUint32MethodInfo
- fileInfoSetAttributeUint32 :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> Word32 -> m ()
- data FileInfoSetAttributeUint64MethodInfo
- fileInfoSetAttributeUint64 :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> Word64 -> m ()
- data FileInfoSetContentTypeMethodInfo
- fileInfoSetContentType :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m ()
- data FileInfoSetCreationDateTimeMethodInfo
- fileInfoSetCreationDateTime :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> DateTime -> m ()
- data FileInfoSetDisplayNameMethodInfo
- fileInfoSetDisplayName :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m ()
- data FileInfoSetEditNameMethodInfo
- fileInfoSetEditName :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Text -> m ()
- data FileInfoSetFileTypeMethodInfo
- fileInfoSetFileType :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> FileType -> m ()
- data FileInfoSetIconMethodInfo
- fileInfoSetIcon :: (HasCallStack, MonadIO m, IsFileInfo a, IsIcon b) => a -> b -> m ()
- data FileInfoSetIsHiddenMethodInfo
- fileInfoSetIsHidden :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Bool -> m ()
- data FileInfoSetIsSymlinkMethodInfo
- fileInfoSetIsSymlink :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Bool -> m ()
- data FileInfoSetModificationDateTimeMethodInfo
- fileInfoSetModificationDateTime :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> DateTime -> m ()
- data FileInfoSetModificationTimeMethodInfo
- fileInfoSetModificationTime :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> TimeVal -> m ()
- data FileInfoSetNameMethodInfo
- fileInfoSetName :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> [Char] -> m ()
- data FileInfoSetSizeMethodInfo
- fileInfoSetSize :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Int64 -> m ()
- data FileInfoSetSortOrderMethodInfo
- fileInfoSetSortOrder :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> Int32 -> m ()
- data FileInfoSetSymbolicIconMethodInfo
- fileInfoSetSymbolicIcon :: (HasCallStack, MonadIO m, IsFileInfo a, IsIcon b) => a -> b -> m ()
- data FileInfoSetSymlinkTargetMethodInfo
- fileInfoSetSymlinkTarget :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> [Char] -> m ()
- data FileInfoUnsetAttributeMaskMethodInfo
- fileInfoUnsetAttributeMask :: (HasCallStack, MonadIO m, IsFileInfo a) => a -> m ()
Exported types
Memory-managed wrapper type.
Constructors
FileInfo (ManagedPtr FileInfo) |
Instances
class (GObject o, IsDescendantOf FileInfo o) => IsFileInfo o Source #
Type class for types which can be safely cast to FileInfo
, for instance with toFileInfo
.
Instances
(GObject o, IsDescendantOf FileInfo o) => IsFileInfo o Source # | |
Defined in GI.Gio.Objects.FileInfo |
toFileInfo :: (MonadIO m, IsFileInfo o) => o -> m FileInfo Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, clearStatus, copyInto, dup, forceFloating, freezeNotify, getv, hasAttribute, hasNamespace, isFloating, listAttributes, notify, notifyByPspec, ref, refSink, removeAttribute, runDispose, stealData, stealQdata, thawNotify, unref, unsetAttributeMask, watchClosure.
Getters
getAccessDateTime, getAttributeAsString, getAttributeBoolean, getAttributeByteString, getAttributeData, getAttributeFilePath, getAttributeInt32, getAttributeInt64, getAttributeObject, getAttributeStatus, getAttributeString, getAttributeStringv, getAttributeType, getAttributeUint32, getAttributeUint64, getContentType, getCreationDateTime, getData, getDeletionDate, getDisplayName, getEditName, getEtag, getFileType, getIcon, getIsBackup, getIsHidden, getIsSymlink, getModificationDateTime, getModificationTime, getName, getProperty, getQdata, getSize, getSortOrder, getSymbolicIcon, getSymlinkTarget.
Setters
setAccessDateTime, setAttribute, setAttributeBoolean, setAttributeByteString, setAttributeFilePath, setAttributeInt32, setAttributeInt64, setAttributeMask, setAttributeObject, setAttributeStatus, setAttributeString, setAttributeStringv, setAttributeUint32, setAttributeUint64, setContentType, setCreationDateTime, setData, setDataFull, setDisplayName, setEditName, setFileType, setIcon, setIsHidden, setIsSymlink, setModificationDateTime, setModificationTime, setName, setProperty, setSize, setSortOrder, setSymbolicIcon, setSymlinkTarget.
type family ResolveFileInfoMethod (t :: Symbol) o where ... Source #
Equations
clearStatus
data FileInfoClearStatusMethodInfo Source #
Instances
(signature ~ m (), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoClearStatusMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoClearStatusMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m () |
Clears the status information from info
.
copyInto
data FileInfoCopyIntoMethodInfo Source #
Instances
(signature ~ (b -> m ()), MonadIO m, IsFileInfo a, IsFileInfo b) => OverloadedMethod FileInfoCopyIntoMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoCopyIntoMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a, IsFileInfo b) | |
=> a |
|
-> b |
|
-> m () |
First clears all of the GFileAttribute of
destInfo
, and then copies all of the file attributes from srcInfo
to destInfo
.
dup
data FileInfoDupMethodInfo Source #
Instances
(signature ~ m FileInfo, MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoDupMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoDupMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m FileInfo | Returns: a duplicate |
Duplicates a file info structure.
getAccessDateTime
data FileInfoGetAccessDateTimeMethodInfo Source #
Instances
(signature ~ m (Maybe DateTime), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAccessDateTimeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAccessDateTimeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAccessDateTime Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m (Maybe DateTime) | Returns: access time, or |
Gets the access time of the current info
and returns it as a
DateTime
.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_TIME_ACCESS
. If FILE_ATTRIBUTE_TIME_ACCESS_USEC
is
provided, the resulting DateTime
will additionally have microsecond
precision.
If nanosecond precision is needed, FILE_ATTRIBUTE_TIME_ACCESS_NSEC
must
be queried separately using fileInfoGetAttributeUint32
.
Since: 2.70
getAttributeAsString
data FileInfoGetAttributeAsStringMethodInfo Source #
Instances
(signature ~ (Text -> m (Maybe Text)), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeAsStringMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeAsStringMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeAsString Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m (Maybe Text) | Returns: a UTF-8 string associated with the given |
Gets the value of an attribute, formatted as a human readable string.
This escapes things as needed to make the string valid UTF-8 and readable by humans. It’s not meant to be a machine readable or reversible escaping format.
To format file name attributes of type
FileAttributeTypeByteString
for output as UTF-8, use
filenameToUtf8
instead:
c code
const char *trash_orig_path_byte_string; g_autofree char *trash_orig_path_utf8 = NULL; trash_orig_path_byte_string = g_file_info_get_attribute_byte_string (info, G_FILE_ATTRIBUTE_TRASH_ORIG_PATH); trash_orig_path_utf8 = g_filename_to_utf8 (trash_orig_path_byte_string, -1, NULL, NULL, NULL); if (trash_orig_path_utf8 != NULL) g_message ("Some larger UTF-8 string with filename embedded as %s", trash_orig_path_utf8);
getAttributeBoolean
data FileInfoGetAttributeBooleanMethodInfo Source #
Instances
(signature ~ (Text -> m Bool), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeBooleanMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeBooleanMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeBoolean Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: the boolean value contained within the attribute. |
Gets the value of a boolean attribute. If the attribute does not
contain a boolean value, False
will be returned.
getAttributeByteString
data FileInfoGetAttributeByteStringMethodInfo Source #
Instances
(signature ~ (Text -> m (Maybe Text)), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeByteStringMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeByteStringMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeByteString Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m (Maybe Text) | Returns: the contents of the |
Gets the value of a byte string attribute. If the attribute does
not contain a byte string, Nothing
will be returned.
getAttributeData
data FileInfoGetAttributeDataMethodInfo Source #
Instances
(signature ~ (Text -> m (Bool, FileAttributeType, Ptr (), FileAttributeStatus)), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeDataMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeDataMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeData Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m (Bool, FileAttributeType, Ptr (), FileAttributeStatus) | Returns: |
Gets the attribute type, value and status for an attribute key.
getAttributeFilePath
data FileInfoGetAttributeFilePathMethodInfo Source #
Instances
(signature ~ (Text -> m (Maybe [Char])), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeFilePathMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeFilePathMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeFilePath Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m (Maybe [Char]) | Returns: the contents of the |
Gets the value of a byte string attribute as a file path.
If the attribute does not contain a byte string, NULL
will be returned.
This function is meant to be used by language bindings that have specific handling for Unix paths.
Since: 2.78
getAttributeInt32
data FileInfoGetAttributeInt32MethodInfo Source #
Instances
(signature ~ (Text -> m Int32), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeInt32MethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeInt32MethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeInt32 Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m Int32 | Returns: a signed 32-bit integer from the attribute. |
Gets a signed 32-bit integer contained within the attribute. If the attribute does not contain a signed 32-bit integer, or is invalid, 0 will be returned.
getAttributeInt64
data FileInfoGetAttributeInt64MethodInfo Source #
Instances
(signature ~ (Text -> m Int64), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeInt64MethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeInt64MethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeInt64 Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m Int64 | Returns: a signed 64-bit integer from the attribute. |
Gets a signed 64-bit integer contained within the attribute. If the attribute does not contain a signed 64-bit integer, or is invalid, 0 will be returned.
getAttributeObject
data FileInfoGetAttributeObjectMethodInfo Source #
Instances
(signature ~ (Text -> m (Maybe Object)), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeObjectMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeObjectMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeObject Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m (Maybe Object) | Returns: a |
getAttributeStatus
data FileInfoGetAttributeStatusMethodInfo Source #
Instances
(signature ~ (Text -> m FileAttributeStatus), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeStatusMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeStatusMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeStatus Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m FileAttributeStatus | Returns: a |
Gets the attribute status for an attribute key.
getAttributeString
data FileInfoGetAttributeStringMethodInfo Source #
Instances
(signature ~ (Text -> m (Maybe Text)), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeStringMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeStringMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeString Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m (Maybe Text) | Returns: the contents of the |
Gets the value of a string attribute. If the attribute does
not contain a string, Nothing
will be returned.
getAttributeStringv
data FileInfoGetAttributeStringvMethodInfo Source #
Instances
(signature ~ (Text -> m (Maybe [Text])), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeStringvMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeStringvMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeStringv Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m (Maybe [Text]) | Returns: the contents of the |
Gets the value of a stringv attribute. If the attribute does
not contain a stringv, Nothing
will be returned.
Since: 2.22
getAttributeType
data FileInfoGetAttributeTypeMethodInfo Source #
Instances
(signature ~ (Text -> m FileAttributeType), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeTypeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeType Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m FileAttributeType | Returns: a |
Gets the attribute type for an attribute key.
getAttributeUint32
data FileInfoGetAttributeUint32MethodInfo Source #
Instances
(signature ~ (Text -> m Word32), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeUint32MethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeUint32MethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeUint32 Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m Word32 | Returns: an unsigned 32-bit integer from the attribute. |
Gets an unsigned 32-bit integer contained within the attribute. If the attribute does not contain an unsigned 32-bit integer, or is invalid, 0 will be returned.
getAttributeUint64
data FileInfoGetAttributeUint64MethodInfo Source #
Instances
(signature ~ (Text -> m Word64), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetAttributeUint64MethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetAttributeUint64MethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetAttributeUint64 Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m Word64 | Returns: a unsigned 64-bit integer from the attribute. |
Gets a unsigned 64-bit integer contained within the attribute. If the attribute does not contain an unsigned 64-bit integer, or is invalid, 0 will be returned.
getContentType
data FileInfoGetContentTypeMethodInfo Source #
Instances
(signature ~ m (Maybe Text), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetContentTypeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetContentTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetContentType Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m (Maybe Text) | Returns: a string containing the file's content type,
or |
Gets the file's content type.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE
.
getCreationDateTime
data FileInfoGetCreationDateTimeMethodInfo Source #
Instances
(signature ~ m (Maybe DateTime), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetCreationDateTimeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetCreationDateTimeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetCreationDateTime Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m (Maybe DateTime) | Returns: creation time, or |
Gets the creation time of the current info
and returns it as a
DateTime
.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_TIME_CREATED
. If FILE_ATTRIBUTE_TIME_CREATED_USEC
is
provided, the resulting DateTime
will additionally have microsecond
precision.
If nanosecond precision is needed, FILE_ATTRIBUTE_TIME_CREATED_NSEC
must
be queried separately using fileInfoGetAttributeUint32
.
Since: 2.70
getDeletionDate
data FileInfoGetDeletionDateMethodInfo Source #
Instances
(signature ~ m (Maybe DateTime), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetDeletionDateMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetDeletionDateMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetDeletionDate Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m (Maybe DateTime) |
Returns the DateTime
representing the deletion date of the file, as
available in FILE_ATTRIBUTE_TRASH_DELETION_DATE
. If the
FILE_ATTRIBUTE_TRASH_DELETION_DATE
attribute is unset, Nothing
is returned.
Since: 2.36
getDisplayName
data FileInfoGetDisplayNameMethodInfo Source #
Instances
(signature ~ m Text, MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetDisplayNameMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetDisplayNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetDisplayName Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m Text | Returns: a string containing the display name. |
Gets a display name for a file. This is guaranteed to always be set.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME
.
getEditName
data FileInfoGetEditNameMethodInfo Source #
Instances
(signature ~ m Text, MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetEditNameMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetEditNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m Text | Returns: a string containing the edit name. |
Gets the edit name for a file.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_EDIT_NAME
.
getEtag
data FileInfoGetEtagMethodInfo Source #
Instances
(signature ~ m (Maybe Text), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetEtagMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetEtagMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m (Maybe Text) | Returns: a string containing the value of the "etag:value" attribute. |
Gets the [entity tag][ifacegio
.Fileentity
-tags] for a given
FileInfo
. See FILE_ATTRIBUTE_ETAG_VALUE
.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_ETAG_VALUE
.
getFileType
data FileInfoGetFileTypeMethodInfo Source #
Instances
(signature ~ m FileType, MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetFileTypeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetFileTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m FileType | Returns: a |
Gets a file's type (whether it is a regular file, symlink, etc).
This is different from the file's content type, see fileInfoGetContentType
.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_TYPE
.
getIcon
data FileInfoGetIconMethodInfo Source #
Instances
(signature ~ m (Maybe Icon), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetIconMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetIconMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m (Maybe Icon) | Returns: |
Gets the icon for a file.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_ICON
.
getIsBackup
data FileInfoGetIsBackupMethodInfo Source #
Instances
(signature ~ m Bool, MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetIsBackupMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetIsBackupMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m Bool |
Checks if a file is a backup file.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_IS_BACKUP
.
getIsHidden
data FileInfoGetIsHiddenMethodInfo Source #
Instances
(signature ~ m Bool, MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetIsHiddenMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetIsHiddenMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m Bool | Returns: |
Checks if a file is hidden.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_IS_HIDDEN
.
getIsSymlink
data FileInfoGetIsSymlinkMethodInfo Source #
Instances
(signature ~ m Bool, MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetIsSymlinkMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetIsSymlinkMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m Bool | Returns: |
Checks if a file is a symlink.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_IS_SYMLINK
.
getModificationDateTime
data FileInfoGetModificationDateTimeMethodInfo Source #
Instances
(signature ~ m (Maybe DateTime), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetModificationDateTimeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetModificationDateTimeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetModificationDateTime Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m (Maybe DateTime) | Returns: modification time, or |
Gets the modification time of the current info
and returns it as a
DateTime
.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_TIME_MODIFIED
. If FILE_ATTRIBUTE_TIME_MODIFIED_USEC
is
provided, the resulting DateTime
will additionally have microsecond
precision.
If nanosecond precision is needed, FILE_ATTRIBUTE_TIME_MODIFIED_NSEC
must
be queried separately using fileInfoGetAttributeUint32
.
Since: 2.62
getModificationTime
data FileInfoGetModificationTimeMethodInfo Source #
Instances
(signature ~ m TimeVal, MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetModificationTimeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetModificationTimeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetModificationTime Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m TimeVal |
Deprecated: (Since version 2.62)Use fileInfoGetModificationDateTime
instead, asTimeVal
is deprecated due to the year 2038 problem.
Gets the modification time of the current info
and sets it
in result
.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_TIME_MODIFIED
. If FILE_ATTRIBUTE_TIME_MODIFIED_USEC
is
provided it will be used too.
getName
data FileInfoGetNameMethodInfo Source #
Instances
(signature ~ m [Char], MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetNameMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m [Char] | Returns: a string containing the file name. |
Gets the name for a file. This is guaranteed to always be set.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_NAME
.
getSize
data FileInfoGetSizeMethodInfo Source #
Instances
(signature ~ m Int64, MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetSizeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetSizeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m Int64 | Returns: a |
Gets the file's size (in bytes). The size is retrieved through the value of
the FILE_ATTRIBUTE_STANDARD_SIZE
attribute and is converted
from guint64
to goffset
before returning the result.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_SIZE
.
getSortOrder
data FileInfoGetSortOrderMethodInfo Source #
Instances
(signature ~ m Int32, MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetSortOrderMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetSortOrderMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m Int32 | Returns: a |
Gets the value of the sort_order attribute from the FileInfo
.
See FILE_ATTRIBUTE_STANDARD_SORT_ORDER
.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_SORT_ORDER
.
getSymbolicIcon
data FileInfoGetSymbolicIconMethodInfo Source #
Instances
(signature ~ m (Maybe Icon), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetSymbolicIconMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetSymbolicIconMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetSymbolicIcon Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m (Maybe Icon) | Returns: |
Gets the symbolic icon for a file.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON
.
Since: 2.34
getSymlinkTarget
data FileInfoGetSymlinkTargetMethodInfo Source #
Instances
(signature ~ m (Maybe [Char]), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoGetSymlinkTargetMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoGetSymlinkTargetMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoGetSymlinkTarget Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m (Maybe [Char]) | Returns: a string containing the symlink target. |
Gets the symlink target for a given FileInfo
.
It is an error to call this if the FileInfo
does not contain
FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET
.
hasAttribute
data FileInfoHasAttributeMethodInfo Source #
Instances
(signature ~ (Text -> m Bool), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoHasAttributeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoHasAttributeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Checks if a file info structure has an attribute named attribute
.
hasNamespace
data FileInfoHasNamespaceMethodInfo Source #
Instances
(signature ~ (Text -> m Bool), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoHasNamespaceMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoHasNamespaceMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Checks if a file info structure has an attribute in the
specified nameSpace
.
Since: 2.22
listAttributes
data FileInfoListAttributesMethodInfo Source #
Instances
(signature ~ (Maybe Text -> m (Maybe [Text])), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoListAttributesMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoListAttributesMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoListAttributes Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Maybe Text |
|
-> m (Maybe [Text]) | Returns: a
null-terminated array of strings of all of the possible attribute
types for the given |
Lists the file info structure's attributes.
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m FileInfo | Returns: a |
Creates a new file info structure.
removeAttribute
data FileInfoRemoveAttributeMethodInfo Source #
Instances
(signature ~ (Text -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoRemoveAttributeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoRemoveAttributeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoRemoveAttribute Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m () |
Removes all cases of attribute
from info
if it exists.
setAccessDateTime
data FileInfoSetAccessDateTimeMethodInfo Source #
Instances
(signature ~ (DateTime -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAccessDateTimeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAccessDateTimeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAccessDateTime Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> DateTime |
|
-> m () |
Sets the FILE_ATTRIBUTE_TIME_ACCESS
and
FILE_ATTRIBUTE_TIME_ACCESS_USEC
attributes in the file info to the
given date/time value.
FILE_ATTRIBUTE_TIME_ACCESS_NSEC
will be cleared.
Since: 2.70
setAttribute
data FileInfoSetAttributeMethodInfo Source #
Instances
(signature ~ (Text -> FileAttributeType -> Ptr () -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAttributeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> FileAttributeType |
|
-> Ptr () |
|
-> m () |
Sets the attribute
to contain the given value, if possible. To unset the
attribute, use FileAttributeTypeInvalid
for type
.
setAttributeBoolean
data FileInfoSetAttributeBooleanMethodInfo Source #
Instances
(signature ~ (Text -> Bool -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAttributeBooleanMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeBooleanMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAttributeBoolean Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> Bool |
|
-> m () |
Sets the attribute
to contain the given attrValue
,
if possible.
setAttributeByteString
data FileInfoSetAttributeByteStringMethodInfo Source #
Instances
(signature ~ (Text -> Text -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAttributeByteStringMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeByteStringMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAttributeByteString Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m () |
Sets the attribute
to contain the given attrValue
,
if possible.
setAttributeFilePath
data FileInfoSetAttributeFilePathMethodInfo Source #
Instances
(signature ~ (Text -> [Char] -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAttributeFilePathMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeFilePathMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAttributeFilePath Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> [Char] |
|
-> m () |
Sets the attribute
to contain the given attrValue
,
if possible.
This function is meant to be used by language bindings that have specific handling for Unix paths.
Since: 2.78
setAttributeInt32
data FileInfoSetAttributeInt32MethodInfo Source #
Instances
(signature ~ (Text -> Int32 -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAttributeInt32MethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeInt32MethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAttributeInt32 Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> m () |
Sets the attribute
to contain the given attrValue
,
if possible.
setAttributeInt64
data FileInfoSetAttributeInt64MethodInfo Source #
Instances
(signature ~ (Text -> Int64 -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAttributeInt64MethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeInt64MethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAttributeInt64 Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> Int64 |
|
-> m () |
Sets the attribute
to contain the given attrValue
,
if possible.
setAttributeMask
data FileInfoSetAttributeMaskMethodInfo Source #
Instances
(signature ~ (FileAttributeMatcher -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAttributeMaskMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeMaskMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAttributeMask Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> FileAttributeMatcher |
|
-> m () |
Sets mask
on info
to match specific attribute types.
setAttributeObject
data FileInfoSetAttributeObjectMethodInfo Source #
Instances
(signature ~ (Text -> b -> m ()), MonadIO m, IsFileInfo a, IsObject b) => OverloadedMethod FileInfoSetAttributeObjectMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeObjectMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAttributeObject Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a, IsObject b) | |
=> a |
|
-> Text |
|
-> b |
|
-> m () |
Sets the attribute
to contain the given attrValue
,
if possible.
setAttributeStatus
data FileInfoSetAttributeStatusMethodInfo Source #
Instances
(signature ~ (Text -> FileAttributeStatus -> m Bool), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAttributeStatusMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeStatusMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAttributeStatus Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> FileAttributeStatus |
|
-> m Bool | Returns: |
Sets the attribute status for an attribute key. This is only
needed by external code that implement fileSetAttributesFromInfo
or similar functions.
The attribute must exist in info
for this to work. Otherwise False
is returned and info
is unchanged.
Since: 2.22
setAttributeString
data FileInfoSetAttributeStringMethodInfo Source #
Instances
(signature ~ (Text -> Text -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAttributeStringMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeStringMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAttributeString Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m () |
Sets the attribute
to contain the given attrValue
,
if possible.
setAttributeStringv
data FileInfoSetAttributeStringvMethodInfo Source #
Instances
(signature ~ (Text -> [Text] -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAttributeStringvMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeStringvMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAttributeStringv Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> [Text] |
|
-> m () |
Sets the attribute
to contain the given attrValue
,
if possible.
Sinze: 2.22
setAttributeUint32
data FileInfoSetAttributeUint32MethodInfo Source #
Instances
(signature ~ (Text -> Word32 -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAttributeUint32MethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeUint32MethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAttributeUint32 Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> Word32 |
|
-> m () |
Sets the attribute
to contain the given attrValue
,
if possible.
setAttributeUint64
data FileInfoSetAttributeUint64MethodInfo Source #
Instances
(signature ~ (Text -> Word64 -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetAttributeUint64MethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetAttributeUint64MethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetAttributeUint64 Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> Word64 |
|
-> m () |
Sets the attribute
to contain the given attrValue
,
if possible.
setContentType
data FileInfoSetContentTypeMethodInfo Source #
Instances
(signature ~ (Text -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetContentTypeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetContentTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetContentType Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the content type attribute for a given FileInfo
.
See FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE
.
setCreationDateTime
data FileInfoSetCreationDateTimeMethodInfo Source #
Instances
(signature ~ (DateTime -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetCreationDateTimeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetCreationDateTimeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetCreationDateTime Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> DateTime |
|
-> m () |
Sets the FILE_ATTRIBUTE_TIME_CREATED
and
FILE_ATTRIBUTE_TIME_CREATED_USEC
attributes in the file info to the
given date/time value.
FILE_ATTRIBUTE_TIME_CREATED_NSEC
will be cleared.
Since: 2.70
setDisplayName
data FileInfoSetDisplayNameMethodInfo Source #
Instances
(signature ~ (Text -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetDisplayNameMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetDisplayNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetDisplayName Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the display name for the current FileInfo
.
See FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME
.
setEditName
data FileInfoSetEditNameMethodInfo Source #
Instances
(signature ~ (Text -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetEditNameMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetEditNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the edit name for the current file.
See FILE_ATTRIBUTE_STANDARD_EDIT_NAME
.
setFileType
data FileInfoSetFileTypeMethodInfo Source #
Instances
(signature ~ (FileType -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetFileTypeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetFileTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> FileType |
|
-> m () |
Sets the file type in a FileInfo
to type
.
See FILE_ATTRIBUTE_STANDARD_TYPE
.
setIcon
data FileInfoSetIconMethodInfo Source #
Instances
(signature ~ (b -> m ()), MonadIO m, IsFileInfo a, IsIcon b) => OverloadedMethod FileInfoSetIconMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetIconMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a, IsIcon b) | |
=> a |
|
-> b |
|
-> m () |
Sets the icon for a given FileInfo
.
See FILE_ATTRIBUTE_STANDARD_ICON
.
setIsHidden
data FileInfoSetIsHiddenMethodInfo Source #
Instances
(signature ~ (Bool -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetIsHiddenMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetIsHiddenMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the "is_hidden" attribute in a FileInfo
according to isHidden
.
See FILE_ATTRIBUTE_STANDARD_IS_HIDDEN
.
setIsSymlink
data FileInfoSetIsSymlinkMethodInfo Source #
Instances
(signature ~ (Bool -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetIsSymlinkMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetIsSymlinkMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the "is_symlink" attribute in a FileInfo
according to isSymlink
.
See FILE_ATTRIBUTE_STANDARD_IS_SYMLINK
.
setModificationDateTime
data FileInfoSetModificationDateTimeMethodInfo Source #
Instances
(signature ~ (DateTime -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetModificationDateTimeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetModificationDateTimeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetModificationDateTime Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> DateTime |
|
-> m () |
Sets the FILE_ATTRIBUTE_TIME_MODIFIED
and
FILE_ATTRIBUTE_TIME_MODIFIED_USEC
attributes in the file info to the
given date/time value.
FILE_ATTRIBUTE_TIME_MODIFIED_NSEC
will be cleared.
Since: 2.62
setModificationTime
data FileInfoSetModificationTimeMethodInfo Source #
Instances
(signature ~ (TimeVal -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetModificationTimeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetModificationTimeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetModificationTime Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> TimeVal |
|
-> m () |
Deprecated: (Since version 2.62)Use fileInfoSetModificationDateTime
instead, asTimeVal
is deprecated due to the year 2038 problem.
Sets the FILE_ATTRIBUTE_TIME_MODIFIED
and
FILE_ATTRIBUTE_TIME_MODIFIED_USEC
attributes in the file info to the
given time value.
FILE_ATTRIBUTE_TIME_MODIFIED_NSEC
will be cleared.
setName
data FileInfoSetNameMethodInfo Source #
Instances
(signature ~ ([Char] -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetNameMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> [Char] |
|
-> m () |
Sets the name attribute for the current FileInfo
.
See FILE_ATTRIBUTE_STANDARD_NAME
.
setSize
data FileInfoSetSizeMethodInfo Source #
Instances
(signature ~ (Int64 -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetSizeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetSizeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Int64 |
|
-> m () |
Sets the FILE_ATTRIBUTE_STANDARD_SIZE
attribute in the file info
to the given size.
setSortOrder
data FileInfoSetSortOrderMethodInfo Source #
Instances
(signature ~ (Int32 -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetSortOrderMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetSortOrderMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the sort order attribute in the file info structure. See
FILE_ATTRIBUTE_STANDARD_SORT_ORDER
.
setSymbolicIcon
data FileInfoSetSymbolicIconMethodInfo Source #
Instances
(signature ~ (b -> m ()), MonadIO m, IsFileInfo a, IsIcon b) => OverloadedMethod FileInfoSetSymbolicIconMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetSymbolicIconMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetSymbolicIcon Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a, IsIcon b) | |
=> a |
|
-> b |
|
-> m () |
Sets the symbolic icon for a given FileInfo
.
See FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON
.
Since: 2.34
setSymlinkTarget
data FileInfoSetSymlinkTargetMethodInfo Source #
Instances
(signature ~ ([Char] -> m ()), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoSetSymlinkTargetMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoSetSymlinkTargetMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoSetSymlinkTarget Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> [Char] |
|
-> m () |
Sets the FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET
attribute in the file info
to the given symlink target.
unsetAttributeMask
data FileInfoUnsetAttributeMaskMethodInfo Source #
Instances
(signature ~ m (), MonadIO m, IsFileInfo a) => OverloadedMethod FileInfoUnsetAttributeMaskMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileInfo Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileInfoUnsetAttributeMaskMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileInfo Methods |
fileInfoUnsetAttributeMask Source #
Arguments
:: (HasCallStack, MonadIO m, IsFileInfo a) | |
=> a |
|
-> m () |
Unsets a mask set by fileInfoSetAttributeMask
, if one
is set.