Creates a local directory to store todo lists
(os: &Os)
| 50 | impl TodoListState { |
| 51 | /// Creates a local directory to store todo lists |
| 52 | pub async fn init_dir(os: &Os) -> Result<()> { |
| 53 | os.fs |
| 54 | .create_dir_all(os.env.current_dir()?.join(get_todo_list_dir(os)?)) |
| 55 | .await?; |
| 56 | Ok(()) |
| 57 | } |
| 58 | |
| 59 | /// Loads a TodoListState with the given id |
| 60 | pub async fn load(os: &Os, id: &str) -> Result<Self> { |
nothing calls this directly
no test coverage detected