From 1b760d295f06f982cb192449bfa7b08da049920a Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Fri, 13 Jan 2023 21:56:06 +0100 Subject: feat: Autocreated sqlite file --- src/Util.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/Util.cs (limited to 'src/Util.cs') diff --git a/src/Util.cs b/src/Util.cs new file mode 100644 index 0000000..19a433a --- /dev/null +++ b/src/Util.cs @@ -0,0 +1,14 @@ +namespace BlobBin; + +public static class Util +{ + public static string GetFilesDirectoryPath(bool createIfNotExists = false) { + var filesDirectoryPath = Path.Combine( + Directory.GetCurrentDirectory(), + "AppData", + "files" + ); + if (createIfNotExists) Directory.CreateDirectory(filesDirectoryPath); + return filesDirectoryPath; + } +} \ No newline at end of file -- cgit v1.3