Skip to content

EnumerationFoundationEssentials

URL.DirectoryHint

iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+
A hint to URL file APIs for handling paths that may reference directories.
enum DirectoryHint

Topics

Enumeration Cases

  • case checkFileSystem
    A hint that directs a URL call to consult the file system to determine whether the path references a directory.
  • case inferFromPath
    A hint that directs a URL call to infer whether a path references a directory based on whether it has a trailing slash.
  • case isDirectory
    A hint that specifies that a given path is a directory.
  • case notDirectory
    A hint that specifies that a given path isn’t a directory.

Relationships

Conforms To

  • Swift.Equatable
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype