Find the Current Permanent Directory
Last modified by Eleni Cojocariu on 2026/04/07 17:30
Steps
To locate the permanent directory:
- Insert the following Velocity script in a wiki Page using the Wiki editor:
{{velocity}} $services.component.getInstance('org.xwiki.environment.Environment').getPermanentDirectory().getCanonicalPath() {{/velocity}} - Click "Save" to execute the script and display the directory path.
FAQ
Why do I get errors after saving the Page with the script?
This could happen if you don't have programming rights.
Is there any other method to find the location of the permanent directory?
Yes, you can check the XWiki logs and look for the "Using permanent directory" string.