What does the -p flag do here?
mkdir -p projects/web/assets
- Creates any missing parent directories
- Prints a message for each directory made
- Sets custom permissions on the dirs
- Fails if a parent directory is absent
mkdir -p builds the whole path, creating projects and web if needed, and does not complain if they already exist.