INCATools / ontology-development-kit

Bootstrap an OBO Library ontology
http://incatools.github.io/ontology-development-kit/
BSD 3-Clause "New" or "Revised" License
223 stars 54 forks source link

Ensure temporary directory exists #1010

Closed gouttegd closed 7 months ago

gouttegd commented 7 months ago

This PR amends the #994 PR to:

This way, we simultaneously ensure that the src/ontology/tmp directory always exist and remove the need for that directory to exist for the debug mode to work (“belt-and-suspenders” approach).

The use of a .gitkeep file to force the existence of src/ontology/tmp is not extended to other directories such as src/ontology/mirror, src/ontology/components, src/ontology/subsets, etc. The rationale is that there is no reason for those directories to exist if they are not used (for example, an ontology that does not import any other ontology has no need for src/ontology/mirror; an ontology that defines no subsets has no need for src/ontology/subsets, etc.); by contrast, src/ontology/tmp will always be needed at some point or another.

gouttegd commented 7 months ago

@joeflack4 Any objection to adding that to your branch?