I’ve added a little script that allows developers to allow access to a directory that is relative to the project root directory of a Haddock CMS project:
PublicHTML_AllowAccessToDirectoryOnTheServerCLIScript
I refactored a bit of existing code from:
PublicHTML_RestrictAccessToDirectoryOnTheServerCLIScript
into an abstract CLI script class:
FileSystem_ExistingDirectoryRelativeToProjectRootCLIScript
If you ever need to write a script that does something with a directory that exists and is relative to the project root, then extending this class would probably be a good place to start.