Skip to content

Page renaming fails if the target directory that does not exist #107

@wasowski

Description

@wasowski

wiki#page#rename fails with a generic message Cannot rename if the target directory does not exist. This makes it difficult (or more difficult than need be) to move pages around. At the very least, I think the error message should be more specific, but I am wondering whether the directories should not be created automatically with something like mkdir -p before attempting to move. One possibility is to keep the current behavior of WikiPageRename as is (with a clearer error message) and add WikiePageRename! that would also create folders.

Opinions?

(I created a PR to show a test case demonstrating the problem, and also added a small patch to produce a more informative error message.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions