hexo publish
doesn't work well with drafts in complex paths
#4759
Labels
duplicate
This issue or pull request already exists
Check List
Please check followings before submitting a new issue.
hexo version
to check)The third item is not checked because I think maybe it's not too difficult to solve, but I know little about NodeJS so I am not sure whether it is hard indeed.
Expected behavior
Using
hexo publish <file>
should move the correct draft to the_posts
folder, even the given path has slashes.Actual behavior
Hexo thinks the given file doesn't exist.
How to reproduce?
hexo new draft 'test title' -p 'folder1/folder2/test title'
hexo publish 'folder1/folder2/test title'
Step 1 output message:
Step 2 output message:
Is the problem still there under "Safe mode"?
Yes.
Environment & Settings
Node.js & npm version(
node -v && npm -v
)Your site
_config.yml
(Optional)Your theme
_config.yml
(Optional)Hexo and Plugin version(
npm ls --depth 0
)Your package.json
package.json
Others
The text was updated successfully, but these errors were encountered: