Files
2026-03-07 18:19:16 +01:00

7 lines
253 B
Swift

//import Foundation
//
//public func extractNameFromPath(_ path: String) -> String {
// let fileName = URL(fileURLWithPath: path).lastPathComponent
// return String(fileName.prefix(upTo: fileName.lastIndex { $0 == "." } ?? fileName.endIndex))
//}