original_string: protected function get_local_path_from_storedfile(stored_file $file, $fetchifnotfound = false) {
          $filepath = $this->get_local_path_from_hash($file->get_contenthash(), $fetchifnotfound);
  
          // Try content recovery.
          if ($fetchifnotfound && !is_readable($filepath)) {
              $this->recover_file($file);
          }
  
          return $filepath;
      }
code: protected function get_local_path_from_storedfile(stored_file $file, $fetchifnotfound = false) {
          $filepath = $this->get_local_path_from_hash($file->get_contenthash(), $fetchifnotfound);
  
          // Try content recovery.
          if ($fetchifnotfound && !is_readable($filepath)) {
              $this->recover_file($file);
          }
  
          return $filepath;
      }
code_tokens: protected function get_local_path_from_storedfile ( stored_file $ file , $ fetchifnotfound = false ) { $ filepath = $ this -> get_local_path_from_hash ( $ file -> get_contenthash ( ) , $ fetchifnotfound ) ; // Try content recovery. if ( $ fetchifnotfound && ! is_readable ( $ filepath ) ) { $ this -> recover_file ( $ file ) ; } return $ filepath ; }
docstring: Get a remote filepath for the specified stored file.
  
  @param stored_file $file The file to fetch the path for
  @param bool $fetchifnotfound Whether to attempt to fetch from the remote path if not found.
  @return string The full path to the content file
docstring_tokens: Get a remote filepath for the specified stored file .