FileAttributeMatcher

class FileAttributeMatcher(pointer: <Error class: unknown class><<Error class: unknown class>>)

Determines if a string matches a file attribute.

Skipped during bindings generation

  • method to_string: C function g_file_attribute_matcher_to_string is ignored

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gioFileAttributeMatcherPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Checks if the matcher will match all of the keys in a given namespace. This will always return true if a wildcard character is in use (e.g. if matcher was created with "standard::" and @ns is "standard", or if matcher was created using "" and namespace is anything.)

Link copied to clipboard

Gets the next matched attribute from a #GFileAttributeMatcher.

Link copied to clipboard
fun matches(attribute: String): Boolean

Checks if an attribute will be matched by an attribute matcher. If the matcher was created with the "*" matching string, this function will always return true.

Link copied to clipboard
fun matchesOnly(attribute: String): Boolean

Checks if an attribute matcher only matches a given attribute. Always returns false if "*" was used when creating the matcher.

Link copied to clipboard

References a file attribute matcher.

Link copied to clipboard

Subtracts all attributes of @subtract from @matcher and returns a matcher that supports those attributes.

Link copied to clipboard
fun unref()

Unreferences @matcher. If the reference count falls below 1, the @matcher is automatically freed.