jmstacey and I discovered that the current implementation of mkdir() for stream wrapper that is in core fails when you try recursive directory creation - hence the File APi conversion cannot work without this quick fix.

Comments

jmstacey’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

pwolanin’s picture

by which jmstacey means he tested it and it fixes the bug :)

pwolanin’s picture

StatusFileSize
new1.04 KB

minor changes suggested by Dries

pwolanin’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

actually, this is not an issue yet, since the current core implementation of getLocalPath() doesn't have the realpath() check

this fix will jsut be included in http://drupal.org/node/517814