protected function findRoot($root)
 {
     if ($root) {
         return parent::findRoot($root);
     }
     // Empty root will set the path to assets
     return ASSETS_PATH;
 }
 protected function findRoot($root)
 {
     // Use explicitly defined path
     if ($root) {
         return parent::findRoot($root);
     }
     // Use environment defined path
     if (defined('SS_PROTECTED_ASSETS_PATH')) {
         return SS_PROTECTED_ASSETS_PATH;
     }
     // Default location is under assets
     return ASSETS_PATH . '/' . Config::inst()->get(get_class($this), 'secure_folder');
 }