Contents

probeResource(resource:replyHandler:)

Requests that the file system probe the specified resource.

Declaration

func probeResource(resource: FSResource, replyHandler reply: @escaping  @Sendable (FSProbeResult?, (any Error)?) -> Void)
func probeResource(resource: FSResource) async throws -> FSProbeResult

Parameters

  • resource:

    The Fsresource to probe.

  • reply:

    A block or closure that your implementation invokes when it finishes the probe or encounters an error. Pass an instance of Fsproberesult with probe results as the first parameter if your probe operation succeeds. If probing fails, pass an error as the second parameter.

Discussion

Implement this method to indicate whether the resource is recognizable and usable.

See Also

Probing resources