Find the Current Permanent Directory

Last modified by Eleni Cojocariu on 2026/04/07 17:30

Content

Steps

To locate the permanent directory:

  1. Insert the following Velocity script in a wiki Page using the Wiki editor:
    {{velocity}}
    $services.component.getInstance('org.xwiki.environment.Environment').getPermanentDirectory().getCanonicalPath()
    {{/velocity}}
  2. 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.

Get Connected