owncloud/core — pull request #269 by blizzz (2012-11-05 20:44:35+00:00)
Title: Fix mkdir and opendir warnings when path does not exist

When the user backend`s implementation of getHome() returns a non-standard path (i.e. not $datadirectory/$username) two PHP warnings are triggered

{"app":"PHP","message":"mkdir(): No such file or directory at ...\/master\/apps\/files_external\/lib\/config.php#289","level":2,"time":1352146879}
{"app":"PHP","message":"opendir(...\/master\/data\/alicccce\/files_external\/uploads\/): failed to open dir: No such file or directory at ...\/master\/apps\/files_external\/lib\/config.php#291","level":2,"time":1352146879}

The commit fixes it by creating the whole path. According to Georg getHome() is not meant to be the place for meta data, so it does not need to be considered.

Btw, the 0777 mode is the default value.

Please review, e.g. (but not limited to) @georgehrke @icewind1991 @bartv2