[dokuwiki] io_rename doesn't work with new diretories/namespaces on Windows

Hello!

I'm using the pagemove plugin that uses the function io_rename for moving
the metadata files. However, if the namespace I want to move a page to,
doesn't exist, io_rename fails. 

Example: I want to move ns1:page1 to ns2:page1. ns2 doesn't exist. The
"rename" command in io_rename fails, then copy is tried, but "copy" also
fails because the directory ns2 doesn't exist.

Now my question: who should be responsible for creating the directory before
copying? Is that a task for the plugin, or is this a bug in io_rename? If
it's no bug, then I think there should be a warning in the documentation
comment of io_rename.

Greetings,

Gabriel

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: