HF RL Explorer

JSONStorage fails to create parent directories when they don't exist

JSONStorage fails to create parent directories when they don't exist: a task in UltraTerminal (Harbor dataset). When using JSONStorage with a file path that includes non-existent parent directories, the database creation fails with a FileNotFoundError. The touch function in storages.py has a logic…

The task

When using JSONStorage with a file path that includes non-existent parent directories, the database creation fails with a FileNotFoundError. The `touch` function in storages.py has a logic error where it only creates directories when they already exist, which is backwards from the intended behavior.

Part of harness-hub/UltraTerminal.