---
title: URL.DirectoryHint.inferFromPath
framework: foundation
role: symbol
role_heading: Case
path: foundation/url/directoryhint/inferfrompath
---

# URL.DirectoryHint.inferFromPath

A hint that directs a URL call to infer whether a path references a directory based on whether it has a trailing slash.

## Declaration

```swift
case inferFromPath
```

## See Also

### Hints

- [URL.DirectoryHint.isDirectory](foundation/url/directoryhint/isdirectory.md)
- [URL.DirectoryHint.notDirectory](foundation/url/directoryhint/notdirectory.md)
- [URL.DirectoryHint.checkFileSystem](foundation/url/directoryhint/checkfilesystem.md)
