# IFileSystemService Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [IFileSystemService](/reference/api/csharp/aspire.hosting/ifilesystemservice.md)
- Kind: `Properties`
- Members: `1`

Service for managing Aspire directories.

## TempDirectory

- Name: `TempDirectory`
- Modifiers: `abstract` `get`
- Returns: [ITempFileSystemService](/reference/api/csharp/aspire.hosting/itempfilesystemservice.md)

Gets the temporary directory service for managing temporary files and directories.

```csharp
public abstract ITempFileSystemService TempDirectory { get; }
```

## Remarks

Use this instead of calling `Directory.CreateTempSubdirectory` directly to ensure consistent temp file management and enable testability.
