You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Note that if using GitHub auto-generated zip files, the contents of the zip file are embedded within a folder. The desktop app automatically unnests the folder contents and moves it up one level so it is on the root level.)
However, if there isn't a single folder all the other files are nested in, it will still unnest the folders in the root directory.
These zips have all the files needed in the root. They dont need to be unnested or the extension will break. However SN will still try and unnest.
Take the advanced checklist as an example. The dir structure looks like this:
However, after the desktop app unnests the directories, it looks like this:
Expected behavior
The desktop app should first check to see if there is a common prefix in the directory structure. If there is only then should it unnest the directories. Otherwise it will break the extensions.
Desktop (please complete the following information):
This discussion was converted from issue #2166 on February 25, 2023 18:35.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
The desktop app downloads the zip files and will ALWAYS try and unnest the folders in the root of the zip. It seems this feature is as intended according to the docs: https://docs.standardnotes.com/extensions/publishing#key-descriptions
However, if there isn't a single folder all the other files are nested in, it will still unnest the folders in the root directory.
To Reproduce
Download any of the zips here: https://github.com/standardnotes/app/tree/bd66b191a55e63ba258f4ed92fd648110617d36f/packages/components/dist/zips
These zips have all the files needed in the root. They dont need to be unnested or the extension will break. However SN will still try and unnest.
Take the advanced checklist as an example. The dir structure looks like this:

However, after the desktop app unnests the directories, it looks like this:

Expected behavior
The desktop app should first check to see if there is a common prefix in the directory structure. If there is only then should it unnest the directories. Otherwise it will break the extensions.
Desktop (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions