Is there a way mounts moudle to exclude subdirectory

Is there a way mounts moudle to exclude subdirectory?
I mounts like this

module:
  mounts:
  - source: docs
    target: content
  - source: img
    target: static/img

sometimes, no referrence imgs by markdown files are in img dir
I use a clean.sh to mv unused imgs to dir img/no-ref.
I want to keep no-ref imgs in img/no-ref for backup
so ,Is there a way mounts moudle to exclude subdirectory img/no-ref ?

Try using ignoreFiles = [ "img/no-ref/\\.*" ]

Also see: Configure Hugo | Hugo

1 Like

It works! many thanks!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.