Title: Dynamic Path &amp; OnlyDirs attribute
Last modified: August 30, 2016

---

# Dynamic Path & OnlyDirs attribute

 *  [dbart31](https://wordpress.org/support/users/dbart31/)
 * (@dbart31)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/dynamic-path-onlydirs-attribute/)
 * Wondering if its possible to use dynamic path variables in the OnlyDirs.
 * We have shared folder system where we have public files and exclusive files. 
   We’ve set the exclusive to be by fa-userrole and fa-username (both) we’d like
   to use something like onlydirs=”public, fa-userrole, fa-username”.
 * This works when I specify the folder name static but need it to be dynamic. Our
   goal is to eliminate the two directory views on the one page. This works but 
   is a little more clumsy for the user.
 * [https://wordpress.org/plugins/file-away/](https://wordpress.org/plugins/file-away/)

The topic ‘Dynamic Path & OnlyDirs attribute’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-away_e3e2e1.svg)
 * [File Away](https://wordpress.org/plugins/file-away/)
 * [Support Threads](https://wordpress.org/support/plugin/file-away/)
 * [Active Topics](https://wordpress.org/support/plugin/file-away/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-away/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-away/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dbart31](https://wordpress.org/support/users/dbart31/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/dynamic-path-onlydirs-attribute/)
 * Status: not resolved