# RecentFiles class

Namespace: [Grasshopper2.Doc](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.doc.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class RecentFiles
```

Provides access to the list of recently opened files.

## Methods

- [AddFile](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.recentfiles/addfile.md): (static) Add a file to the recent file list.
- [GetFiles](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.recentfiles/getfiles.md): (static) Gets an array of recent files, sorted from most recent to least recent. Note that this method does not check whether or not the files do in fact still exist, that is the responsibility of the caller.
- [GetFilesByPeriod](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.recentfiles/getfilesbyperiod.md): (static) Get all recent files sorted by various periods. This method checks for the existence of files.
- [GetRelevantDate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.recentfiles/getrelevantdate.md): (static) Find the date and state of a recent file.
- [PurgeFile](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.recentfiles/purgefile.md): (static) Remove a file path from the history.
