mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-16 17:39:08 +00:00
18 lines
422 B
Swift
18 lines
422 B
Swift
//
|
|
// FileUtils.swift
|
|
// SimpleX (iOS)
|
|
//
|
|
// Created by JRoberts on 15.04.2022.
|
|
// Copyright © 2022 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
func getDocumentsDirectory() -> URL {
|
|
return FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!
|
|
}
|
|
|
|
func getAppFilesDirectory() -> URL {
|
|
return getDocumentsDirectory().appendingPathComponent("app_files", isDirectory: true)
|
|
}
|