Table of Contents

Delegate EnumerateDirectoryCallback

Namespace
Sdl3Sharp.IO
Assembly
Sdl3Sharp.dll

Represents a method that will be called for each entry in a directory during enumeration

public delegate EnumerationResult EnumerateDirectoryCallback(string directoryName, string entryName)

Parameters

directoryName string

The directory that is being enumerated. Can be the empty string when enumerating the root of a Storage container.

entryName string

The name of the entry being enumerated

Returns

EnumerationResult

How to proceed with the enumeration:

  • FailureTerminate the enumeration with an error
  • SuccessTerminate the enumeration with success
  • ContinueContinue with the enumeration

Remarks

Enumeration of directory entries will continue until either all entries have been enumerated, or the enumeration was requested to terminate.

directoryName is guaranteed to end with a directory separator character ('\\' on Windows; '/' on most other platforms) if it's not the empty string. It can be the empty string ("") when enumerating the root of a Storage container.