> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Method PaczWriterFromDirectory

Namespace: [Phoenix.BuilderUIClient](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.BuilderUIClient)\
Assembly: Phoenix.BuilderUIClient.dll

## PaczWriterFromDirectory(string, Guid, IPaczClient)

Create a new IPaczWriter by converting an existing directory.

```csharp theme={null}
public static Task<IPaczWriter> PaczWriterFromDirectory(string targetFolder, Guid plugInId, IPaczClient paczClient)

```

### Parameters

`targetFolder` [string](https://learn.microsoft.com/dotnet/api/system.string)

The target folder to convert.
This will become the source directory for the new IPaczWriter.
All the files in it will be listed as instance files.

`plugInId` [Guid](https://learn.microsoft.com/dotnet/api/system.guid)

The plug-in ID to set in the new component config.

`paczClient` IPaczClient

The pacz client to use when creating the pacz.

### Returns

[Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)\<IPaczWriter>

A new IPaczWriter with a configuration containing the target ID and existing files in the folder
as instance files.
