From 505b23afc68ecbb63b8f0a7d44c0b0ad063d5cfd Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Thu, 24 Sep 2026 11:02:35 +0100 Subject: rearrange source, move common parts to framework --- Utils/FileUtils.swift | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Utils/FileUtils.swift (limited to 'Utils/FileUtils.swift') diff --git a/Utils/FileUtils.swift b/Utils/FileUtils.swift new file mode 100644 index 0000000..7a7f177 --- /dev/null +++ b/Utils/FileUtils.swift @@ -0,0 +1,23 @@ +// +// Utils.swift +// ADSBDecoder +// +// Created by Jacky Jack on 30/06/2024. +// + +import Foundation + +//return true if file excists +func checkIfFileExists(_ fname: String) -> Bool { + let fm = FileManager.default + if fm.fileExists(atPath: fname) { + return true + } + return false +} + +//get current run directory +func getCurrentDirPath() -> String { + return Process().currentDirectoryPath +} + -- cgit v1.2.3