# ITempFileSystemService

- Kind: `interface`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.6.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/Ats/ITempFileSystemService.cs)

Service for managing temporary directories and files within Aspire.

## Definition

```csharp
namespace Aspire.Hosting;

public interface ITempFileSystemService
{
    // ...
}
```

## Methods

- [CreateTempFile(string?)](/reference/api/csharp/aspire.hosting/itempfilesystemservice/methods.md#createtempfile-string) : [TempFile](/reference/api/csharp/aspire.hosting/tempfile.md) `abstract` -- Creates a new temporary file and returns it.
- [CreateTempSubdirectory(string?)](/reference/api/csharp/aspire.hosting/itempfilesystemservice/methods.md#createtempsubdirectory-string) : [TempDirectory](/reference/api/csharp/aspire.hosting/tempdirectory.md) `abstract` -- Creates and returns a temporary subdirectory.
