Title: Include complete folders
Last modified: April 11, 2019

---

# Include complete folders

 *  Resolved [xsonic](https://wordpress.org/support/users/xsonic/)
 * (@xsonic)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/include-complete-folders/)
 * Is it possible to mark a whole folder to be included?
    I want the complete /uploads/
   folder to be copied. I tried different variantions but couldn’t get it to work.
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/include-complete-folders/#post-11417750)
 * Hi [@xsonic](https://wordpress.org/support/users/xsonic/),
 * Currently, this is possible, using the available hook:
 * [https://github.com/WP2Static/wp2static#modify-the-initial-list-of-urls-to-crawl](https://github.com/WP2Static/wp2static#modify-the-initial-list-of-urls-to-crawl)
 * And based on the example there, pass in a list of the public URLs of all the 
   files in your uploads dir. This can be done by a custom function within your 
   theme/child theme’s functions.php.
 * I’m planning to add more options for folder/file selection via the GUI in an 
   upcoming version.
 * Please shoot me an email if you’re needing help with the custom function creation.
 * Cheers,
 * Leon
 *  Thread Starter [xsonic](https://wordpress.org/support/users/xsonic/)
 * (@xsonic)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/include-complete-folders/#post-11419920)
 * Thanks a lot, didn’t notice that there is documentation on github aswell.
    This
   is exactly what I needed.
 * Imho a syntax like `/wp-content/uploads/` or `/wp-content/uploads/**/*.*` or 
   sth similar in the `includes` and `excludes` textboxes would be a great addition.
 * Thanks a lot for the quick response, awesome plugin, I am impressed! 🙂
 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years ago](https://wordpress.org/support/topic/include-complete-folders/#post-11553913)
 * Hi there,
 * Closing this issue due to inactivity / assumed resolution. Please re-open to 
   continue the discussion.
 * You may also try an early development release of version 7, which brings a lot
   of fixes and some nice new features:
 * [https://wordpress.org/support/topic/version-7-early-development-release-available/](https://wordpress.org/support/topic/version-7-early-development-release-available/)
 * Cheers,
 * Leon

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Include complete folders’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/static-html-output-plugin_cce3eb.
   svg)
 * [WP2Static](https://wordpress.org/plugins/static-html-output-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/static-html-output-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/static-html-output-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/static-html-output-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/static-html-output-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/static-html-output-plugin/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/include-complete-folders/#post-11553913)
 * Status: resolved