Fooocus icon indicating copy to clipboard operation
Fooocus copied to clipboard

correctly create directory for path_outputs if not existing

Open mashb1t opened this issue 2 years ago • 0 comments

Closes https://github.com/lllyasviel/Fooocus/issues/1077

Currently the config is loaded first and falls back to the default outputs dir if it doesn't exist, then creates the fallback outputs dir... which doesn't make that much sense to me.

Expected:

  1. change config path_outputs to non-existing directory
  2. run Fooocus
  3. path_outputs dir does get created

Actual

  1. change config path_outputs to non-existing directory
  2. run Fooocus
  3. loads config, doesn't find path_outputs dir,m falls back to default value
  4. calls os.makedirs(path_outputs, exist_ok=True) on fallback value
  5. path_outputs dir does not get created

mashb1t avatar Dec 30 '23 18:12 mashb1t