```python
Returns a list of filenames that are to be staged.

Args:
pattern (`str` or `Path`):
The pattern of filenames to check. Put `.` to get all files.
folder (`str` or `Path`):
The folder in which to run the command.

Returns:
`List[str]`: List of files that are to be staged.
```