Cover the topic in #177, create file system module and extract existing file write and read operations to it.
📝 Summary of Changes
Changes proposed in this pull request:
Create module FileSystem
Move enum Reader, InputFormat to FileSystem, with updates to commands
Create struct ProfileProcessor and struct CertificateProcessor extends the new created protocol ResourceProcessor and protocol FileProvider.
⚠️ Items of Note
Cover the topic of #177
Some protocol namings may not 100% good 🤔
Not 100% sure whether print("📥 XXX '\($0.name ?? "")' downloaded to: \(file.path)") should be included in File System or not. Didn't do this for now as mentioned in #177 that FileSystem should only deal with File write and read. But happy to change.
Cover the topic in #177, create file system module and extract existing file write and read operations to it.
📝 Summary of Changes
Changes proposed in this pull request:
FileSystem
enum Reader
,InputFormat
toFileSystem
, with updates to commandsstruct ProfileProcessor
andstruct CertificateProcessor
extends the new createdprotocol ResourceProcessor
andprotocol FileProvider
.⚠️ Items of Note
Cover the topic of #177
Some protocol namings may not 100% good 🤔
Not 100% sure whether
print("📥 XXX '\($0.name ?? "")' downloaded to: \(file.path)")
should be included inFile System
or not. Didn't do this for now as mentioned in #177 thatFileSystem
should only deal with File write and read. But happy to change.🧐🗒 Reviewer Notes
🔨 How To Test
swift run build