Improve storage, paths
This commit is contained in:
@ -2,6 +2,9 @@ import Foundation
|
||||
|
||||
final class PathSettings: ObservableObject {
|
||||
|
||||
@Published
|
||||
var contentDirectoryPath: String
|
||||
|
||||
@Published
|
||||
var outputDirectoryPath: String
|
||||
|
||||
@ -24,6 +27,7 @@ final class PathSettings: ObservableObject {
|
||||
var tagsOutputFolderPath: String
|
||||
|
||||
init(file: PathSettingsFile) {
|
||||
self.contentDirectoryPath = file.contentDirectoryPath
|
||||
self.assetsOutputFolderPath = file.assetsOutputFolderPath
|
||||
self.outputDirectoryPath = file.outputDirectoryPath
|
||||
self.pagesOutputFolderPath = file.pagesOutputFolderPath
|
||||
@ -34,7 +38,8 @@ final class PathSettings: ObservableObject {
|
||||
}
|
||||
|
||||
var file: PathSettingsFile {
|
||||
.init(outputDirectoryPath: outputDirectoryPath,
|
||||
.init(contentDirectoryPath: contentDirectoryPath,
|
||||
outputDirectoryPath: outputDirectoryPath,
|
||||
assetsOutputFolderPath: assetsOutputFolderPath,
|
||||
pagesOutputFolderPath: pagesOutputFolderPath,
|
||||
imagesOutputFolderPath: imagesOutputFolderPath,
|
||||
|
Reference in New Issue
Block a user