ITemporaryRepos

Defines the public contract for the TemporaryRepos class, exposing temporary folder lifecycle, path generation, and file cleanup operations used during linelist preparation.

Lifecycle

EnsureReady #

Prepare the repository so that file operations can be performed

Signature:

Public Sub EnsureReady()

Readiness and cleanup.


Reset #

Clear the repository contents and mark it as uninitialised

Signature:

Public Sub Reset()

Paths

RootPath #

Active repository root folder

Signature:

Public Property Get RootPath() As String

Path accessors and generation.

Returns: String. Fully-qualified absolute path.


CreateFilePath #

Generate a sanitised file path within the repository

Signature:

Public Function CreateFilePath(ByVal fileName As String) As String

Parameters:

  • fileName: String. Requested file name.

Returns: String. Fully-qualified path.


File Operations

DeleteFile #

Remove a single file from the repository if it exists

Signature:

Public Sub DeleteFile(ByVal path As String)

Deletion utilities.

Parameters:

  • path: String. Absolute file path.

DeleteAll #

Remove every file created within the repository

Signature:

Public Sub DeleteAll()