connector configuration

Added by Josef Koller 4 months ago

Hi,

I'm to stupid to get the right configuration in connector.php.

I would like to get the following config in opts array:


main (directory) <-- rm :false
 |-> html (directory) <-- rm : false
      |-> test.html (files inside html-directory) <-- rm : true
 |-> images (directory) <-- rm:false
      |-> test.png (files inside images-directory) <-- rm : true

.....
ect.

'defaults' => array(
          'read'  => true,
             'write' => true,
             'rm'    => false
     ),
'perms' => array(

    no idea. All I tested failed!

        )


In summery: All directories not removeable, all files in the directories removeable.

Thank's for help.

Josef


Replies (1)

RE: connector configuration - Added by Troex Nevelin 4 months ago

Try this

'perms' => array(
   '/^main/html/.*/i' => array(
     'read'  => true,
     'write' => true,
     'rm'    => true
   ),
   '/^main/images/.*/i' => array(
     'read'  => true,
     'write' => true,
     'rm'    => true
   ),
)

And leave your defaults rules

(1-1/1)