---
title: "sourceFiles(withSuffix:)"
framework: swift-package-manager
role: symbol
role_heading: Instance Method
path: "swift-package-manager/documentation/packageplugin/swiftsourcemoduletarget/sourcefiles(withsuffix:)"
---

# sourceFiles(withSuffix:)

A possibly empty list of source files in the target that have the given filename suffix.

## Declaration

```swift
func sourceFiles(withSuffix suffix: String) -> FileList
```

## See Also

### Source Files

- [sourceFiles](swift-package-manager/documentation/packageplugin/swiftsourcemoduletarget/sourcefiles.md)
