---
title: standardize()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/url/standardize()
---

# standardize()

Standardizes the path of a file URL.

## Declaration

```swift
mutating func standardize()
```

## Discussion

Discussion If the isFileURL is false, this method does nothing.

## See Also

### Working with file URLs

- [isFileURL](foundation/url/isfileurl.md)
- [hasDirectoryPath](foundation/url/hasdirectorypath.md)
- [withUnsafeFileSystemRepresentation(_:)](foundation/url/withunsafefilesystemrepresentation(_:).md)
- [resolveSymlinksInPath()](foundation/url/resolvesymlinksinpath().md)
- [resolvingSymlinksInPath()](foundation/url/resolvingsymlinksinpath().md)
