Skip to content

Commit

Permalink
Change default directory
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Jan 31, 2024
1 parent 4db1d84 commit e0a5680
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/AppState/Application/Application+public.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1064,13 +1064,13 @@ public extension Application {

- Parameters:
- initial: The closure that returns initial state value.
- path: The path to the directory containing the file. The default is `./App`.
- path: The path to the directory containing the file. The default is `~/App`.
- filename: The name of the file to read.
- Returns: The state of type `Value`.
*/
func fileState<Value>(
initial: @escaping @autoclosure () -> Value,
path: String = "./App",
path: String = "~/App",
filename: String
) -> FileState<Value> {
FileState(
Expand All @@ -1083,12 +1083,12 @@ public extension Application {
Retrieves a `FileManager` backed state for the provided `path` and `filename` with a default value of `nil`.

- Parameters:
- path: The path to the directory containing the file. The default is `./App`.
- path: The path to the directory containing the file. The default is `~/App`.
- filename: The name of the file to read.
- Returns: The state of type `Value`.
*/
func fileState<Value>(
path: String = "./App",
path: String = "~/App",
filename: String
) -> FileState<Value?> {
fileState(
Expand Down

0 comments on commit e0a5680

Please sign in to comment.