Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-przybyl-wttech committed Aug 21, 2024
1 parent 589f19b commit 63d8f57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/content_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func (cm *ContentManager) PullDir(dir string, clean bool, replace bool, opts Pac
if err := content.Unzip(pkgFile, workDir); err != nil {
return err
}
if err := pathx.Ensure(dir); err != nil {
return err
}
mainDir, _, _ := strings.Cut(dir, content.JCRRoot)
contentManager := cm.instance.manager.aem.contentManager
if replace {
Expand Down Expand Up @@ -114,6 +117,9 @@ func (cm *ContentManager) PullFile(file string, clean bool, opts PackageCreateOp
return err
}
dir := filepath.Dir(file)
if err := pathx.Ensure(dir); err != nil {
return err
}
_, jcrPath, _ := strings.Cut(dir, content.JCRRoot)
contentManager := cm.instance.manager.aem.contentManager
if err := contentManager.BeforePullFile(file); err != nil {
Expand Down

0 comments on commit 63d8f57

Please sign in to comment.