/**
  * This functions adds the folders to test for each media, you can add more folders to test with
  * addFoldersToTest
  * @author Max Milbers
  */
 public function determineFoldersToTest()
 {
     if (VmAccess::manager('core')) {
         $r = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
         $this->addFoldersToTest($r);
     }
     $file_path = str_replace('/', DS, $this->file_url_folder);
     if ($this->file_is_forSale) {
         $this->addFoldersToTest($file_path);
     } else {
         $this->addFoldersToTest(VMPATH_ROOT . DS . $file_path);
     }
     $file_path_thumb = str_replace('/', DS, $this->file_url_folder_thumb);
     $this->addFoldersToTest(VMPATH_ROOT . DS . $file_path_thumb);
 }