ITempFilesNewTempDirectory Method

Creates a new empty temporary directory inside temp subdirectory of SettingsDirectory.

The temporary directory will be deleted when the object which owns ITempFiles (for example, ISessionProfile) is disposed. The directory may also be deleted earlier by the caller code.

  Note

Directories which are created by NewTempDirectory(Guid, String) are not remembered by ITempFiles or its owner object, i.e., a new directory is created on each call and the caller code is responsible for storing the returned directory path.

Definition

Namespace: SMath.Manager
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.74.9654.0
C#
string NewTempDirectory(
	Guid pluginId,
	string topic = null
)

Parameters

pluginId  Guid
PublicGuid of the plug-in which requests a new temporary directory. If it is requested outside of any plug-in, Empty must be specified.
topic  String  (Optional)
Optional topic which is logged and can be used for identification of the temporary directories when troubleshooting is required. For example: "Parsed Links", "Region Attachments", etc.

Return Value

String
Full path to the created temporary directory, without the trailing DirectorySeparatorChar.

See Also