-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Multiple Roots
troex edited this page Mar 5, 2012
·
9 revisions
If you would like to add more than one root directory like the one shown in demo, just "mount" another set of driver and name it LocalFileSystem
on your opts inside connector.php
Example:
<?php
$opts = array(
'roots' => array(
array(
'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
'path' => 'path/to/files/first_root', // path to files (REQUIRED)
'URL' => 'http://localhost/files/first_root/', // URL to files (REQUIRED)
'alias' => 'First home', // The name to replace your actual path name. (OPTIONAL)
'accessControl' => 'access' // disable and hide dot starting files (OPTIONAL)
),
array(
'driver' => 'LocalFileSystem',
'path' => 'path/to/files/second_root',
'URL' => 'http://localhost/files/second_root/',
'alias' => 'Second home'
)
)
);
Discussion: https://github.com/Studio-42/elFinder/issues/98#issuecomment-1866035