mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added a comment about strict content/media imports
refs https://github.com/TryGhost/Toolbox/issues/523 - Making "content/media" a strict requirement for the import folder structure breaks the importer (glob library does not expand a subdirectory pattern). Unless it become a strict requirement we can use general content directory matching in combination with file extensions.
This commit is contained in:
parent
0c111cfe6b
commit
59d0a1dd71
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@ class ImporterMediaHandler {
|
|||
return this.config.get('uploads').media.contentTypes;
|
||||
}
|
||||
|
||||
// @NOTE: making the second parameter strict folder "content/media" broke the glob pattern
|
||||
// in the importer, so we need to keep it as general "content" unless
|
||||
// it becomes a strict requirement
|
||||
directories = ['media', 'content'];
|
||||
|
||||
async loadFile(files, baseDir) {
|
||||
|
|
Loading…
Add table
Reference in a new issue