[pmwiki-users] wikish rename page & move attachments
tamouse.lists at gmail.com
Sat Jul 28 18:34:31 CDT 2012
Alex Eftimiades <alexeftimiades at gmail.com> wrote:
> I am trying to complete the functionality of the rename page script. I
> could not find any documentation as to how I might go about moving any
> page specific attachments from the old page to the new page. I am not
> even sure if it is currently possible.
> If it is possible, could someone please tell me how?
If you store attachments per Group/Page, it should be fairly trivial to
move them. Untested pseudo-shell:
mkdir -p uploads/NewGroup/NewPage
mv uploads/OldGroup/OldPage/* uploads/NewGroup/NewPage/
(the -p option on mkdir tells it to make intervening directories if they
don't yet exist in the path.)
More information about the pmwiki-users