OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
IFileSystem.cs
1using System.IO;
2
3namespace OSDP.Net.Tracing;
4
8public interface IFileSystem
9{
14 void CreateDirectory(string path);
15
22 StreamWriter CreateStreamWriter(string path, bool append);
23
29 string GetDirectoryName(string path);
30}
Abstraction for file system operations to enable testing without actual file I/O.
Definition IFileSystem.cs:9
StreamWriter CreateStreamWriter(string path, bool append)
Creates a StreamWriter for the specified file path.
void CreateDirectory(string path)
Creates all directories in the specified path.
string GetDirectoryName(string path)
Gets the directory name from a file path.