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
There is a code in lib/process-post.js to process files in a "drafts" folder, but the code path is inaccessible because in lib/read-zip.js, only content in the "posts" folder is read, ignoring anything in the "drafts" folder.
As mentioned in a recent PR, the correct folder names are "_posts" and "_drafts".
The fix is to update the regex in lib/read-zip.js to also pass along content in _drafts as well.
The text was updated successfully, but these errors were encountered:
markstos
added a commit
to markstos/migrate
that referenced
this issue
Jun 7, 2022
First, the intent was to read files in the `_drafts/` folder was well,
but the Regex was not matching it.
Second, the intent was to match against the path stored in the the
zipfile, but that was broken. Confusingly, "entryName" holds just the
file name while "zipEntry.entryName" holds the full path. The fix is
to switch "entryName" we use.
Third, only the bare file name was being reported when skipped. It's
more useful to see the full path within the zip, in case the problem is
with the folder structure in there.
FixesTryGhost#510
There is a code in
lib/process-post.js
to process files in a "drafts" folder, but the code path is inaccessible because inlib/read-zip.js
, only content in the "posts" folder is read, ignoring anything in the "drafts" folder.As mentioned in a recent PR, the correct folder names are "_posts" and "_drafts".
The fix is to update the regex in
lib/read-zip.js
to also pass along content in_drafts
as well.The text was updated successfully, but these errors were encountered: