Skip to content

Kernel API /api/export/exportResources to export files and folders #8841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

Zuoqiu-Yingyi
Copy link
Contributor

  • Please commit to the dev branch
  • For contributing new features, please supplement and improve the corresponding user guide documents

Have been tested

Export files and folders

  • /api/export/exportResources

  • Parameters

    {
      "paths": [
        "/conf/appearance/boot",
        "/conf/appearance/langs",
        "/conf/appearance/emojis/conf.json",
        "/conf/appearance/icons/index.html",
      ],
      "name": "zip-file-name"
    }
    • paths: A list of file or folder paths to be exported, the same filename/folder name will be overwritten
    • name: (Optional) The exported file name, which defaults to export-YYYY-MM-DD_hh-mm-ss.zip when not set
  • Return value

    {
      "code": 0,
      "msg": "",
      "data": {
        "path": "temp/export/zip-file-name.zip"
      }
    }
    • path: The path of *.zip file created
      • The directory structure in zip-file-name.zip is as follows:
        • zip-file-name
          • boot
          • langs
          • conf.json
          • index.html

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
gaborbernat Bernát Gábor
@88250 88250 added this to the 2.9.8 milestone Jul 28, 2023
@88250 88250 merged commit 0c7e16e into siyuan-note:dev Jul 28, 2023
@Zuoqiu-Yingyi Zuoqiu-Yingyi deleted the feat/api-export-dir branch July 28, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants