Fix mkdir and opendir warnings when path does not exist
Fix mkdir and opendir warnings when path does not exist

IljaN/core,pmattern/server,nextcloud/server,bluelml/core,michaelletzgus/nextcloud-server,endsguy/server,endsguy/server,andreas-p/nextcloud-server,endsguy/server,cernbox/core,Ardinis/server,Ardinis/server,sharidas/core,owncloud/core,cernbox/core,whitekiba/server,xx621998xx/server,sharidas/core,lrytz/core,pixelipo/server,lrytz/core,michaelletzgus/nextcloud-server,bluelml/core,pixelipo/server,cernbox/core,pmattern/server,owncloud/core,jbicha/server,pmattern/server,andreas-p/nextcloud-server,pollopolea/core,IljaN/core,xx621998xx/server,bluelml/core,endsguy/server,sharidas/core,owncloud/core,whitekiba/server,pixelipo/server,whitekiba/server,Ardinis/server,whitekiba/server,sharidas/core,bluelml/core,lrytz/core,phil-davis/core,cernbox/core,IljaN/core,pollopolea/core,andreas-p/nextcloud-server,jbicha/server,owncloud/core,pollopolea/core,xx621998xx/server,jbicha/server,xx621998xx/server,nextcloud/server,nextcloud/server,IljaN/core,pollopolea/core,andreas-p/nextcloud-server,michaelletzgus/nextcloud-server,xx621998xx/server,whitekiba/server,nextcloud/server,pollopolea/core,Ardinis/server,jbicha/server,andreas-p/nextcloud-server,Ardinis/server,pmattern/server,pixelipo/server,cernbox/core,bluelml/core,pixelipo/server,endsguy/server,IljaN/core,owncloud/core,sharidas/core,pmattern/server,michaelletzgus/nextcloud-server,lrytz/core,lrytz/core,jbicha/server