I'm not going to merge this one. There are two reasons to use the "-p" flag to mkdir. Firstly, it creates full paths if needed (e.g. mkdir -p foo/bar/baz will create all three folders if needed), and secondly (the relevant one here) it does nothing if the path already exists (making this check pointless)
I'm not going to merge this one. There are two reasons to use the "-p" flag to mkdir. Firstly, it creates full paths if needed (e.g. mkdir -p foo/bar/baz will create all three folders if needed), and secondly (the relevant one here) it does nothing if the path already exists (making this check pointless)