Skip to content

Sfresneda/FDAFilesManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FDAFilesManager

FileManager.default wrapper for iOS/macOS/watchOS/tvOS/iPadOS, written in Swift 5.9

Installation

Add this SPM dependency to your project:

https://github.com/Sfresneda/FDAFilesManager

Usage

import FDAFilesManager

let fileManager = FDAFilesManager(destinationFolderName: "com.fresneda.fdaapp")

let fileName = "file.txt"

try await fileManager.createFile(name: fileName, 
                       withContent: "Hello, World!".data(using: .utf8))
let filePath = try await fileManager.fileDirectory(for: fileName)

let fileContent = String(data: Data(contentsOf: filePath)!, 
                         encoding: .utf8)

License

This project is licensed under the Apache License - see the LICENSE file for details

Author

Sergio Fresneda - sfresneda

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages