check each subpart of a path during `mkdir` and specially deal with symlink subpart