private function rem_dir_opt($d){
    $sub_files = bbn\file\dir::scan($d);
    $files = [];
    foreach ( $sub_files as $sub ){
      if ( is_file($sub) ){
        // Add it to files to be closed
        array_push($files, $this->real_to_url($sub));
        // Remove file's options
        $this->options->remove($this->options->from_code($this->real_to_id($sub), $this->_files_pref()));
      }
      else {
        $f = $this->rem_dir_opt($sub);
        if ( !empty($f) ){
          $files = array_merge($files, $f);
        }
      }
    }
    return $files;
  }
private function rem_dir_opt($d){
    $sub_files = bbn\file\dir::scan($d);
    $files = [];
    foreach ( $sub_files as $sub ){
      if ( is_file($sub) ){
        // Add it to files to be closed
        array_push($files, $this->real_to_url($sub));
        // Remove file's options
        $this->options->remove($this->options->from_code($this->real_to_id($sub), $this->_files_pref()));
      }
      else {
        $f = $this->rem_dir_opt($sub);
        if ( !empty($f) ){
          $files = array_merge($files, $f);
        }
      }
    }
    return $files;
  }
private function rem_dir_opt ( $ d ) { $ sub_files = bbn \ file \ dir :: scan ( $ d ) ; $ files = [ ] ; foreach ( $ sub_files as $ sub ) { if ( is_file ( $ sub ) ) { // Add it to files to be closed array_push ( $ files , $ this -> real_to_url ( $ sub ) ) ; // Remove file's options $ this -> options -> remove ( $ this -> options -> from_code ( $ this -> real_to_id ( $ sub ) , $ this -> _files_pref ( ) ) ) ; } else { $ f = $ this -> rem_dir_opt ( $ sub ) ; if ( ! empty ( $ f ) ) { $ files = array_merge ( $ files , $ f ) ; } } } return $ files ; }
Deletes all files' options of a folder and returns an array of these files.

@param string $d The folder's path
@return array
Deletes all files options of a folder and returns an array of these files .