OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
OSDP.Net.Tracing.IFileSystem Interface Reference

Abstraction for file system operations to enable testing without actual file I/O. More...

Public Member Functions

void CreateDirectory (string path)
 Creates all directories in the specified path.
StreamWriter CreateStreamWriter (string path, bool append)
 Creates a StreamWriter for the specified file path.
string GetDirectoryName (string path)
 Gets the directory name from a file path.

Detailed Description

Abstraction for file system operations to enable testing without actual file I/O.

Definition at line 8 of file IFileSystem.cs.

Member Function Documentation

◆ CreateDirectory()

void OSDP.Net.Tracing.IFileSystem.CreateDirectory ( string path)

Creates all directories in the specified path.

Parameters
pathThe directory path to create.

◆ CreateStreamWriter()

StreamWriter OSDP.Net.Tracing.IFileSystem.CreateStreamWriter ( string path,
bool append )

Creates a StreamWriter for the specified file path.

Parameters
pathThe file path.
appendIf true, appends to the file; otherwise creates new file.
Returns
A StreamWriter instance.

◆ GetDirectoryName()

string OSDP.Net.Tracing.IFileSystem.GetDirectoryName ( string path)

Gets the directory name from a file path.

Parameters
pathThe file path.
Returns
The directory name.

The documentation for this interface was generated from the following file: