p2panda / aquadoggo

Node for the p2panda network handling validation, storage, aggregation and replication
GNU Affero General Public License v3.0
69 stars 5 forks source link

Check if `blobs_base_path` exists when set #592

Open sandreae opened 10 months ago

sandreae commented 10 months ago

If the blob path is set but a directory doesn't exist at that location, then the node starts but later will crash if a blob is created. This results in confusing errors unrelated to the actual error.

If it doesn't exist, better behaviour would be to either automatically create it, or warn and shutdown the node.