pic32/libraries/SD/utility/SdFile.cpp
//------------------------------------------------------------------------------
/**
 * Return a files directory entry
 *
 * \param[out] dir Location for return of the files directory entry.
 *
 * \return The value one, true, is returned for success and
 * the value zero, false, is returned for failure.
 */
Return a files directory entry
\param[out] dir Location for return of the files directory entry.

\return The value one, true, is returned for success and
the value zero, false, is returned for failure.
Return a files directory entry \ param [ out ] dir Location for return of the files directory entry . \ return The value one true is returned for success and the value zero false is returned for failure .
uint8_t SdFile::dirEntry(dir_t* dir) {
  if (!sync()) return false;
  dir_t* p = cacheDirEntry(SdVolume::CACHE_FOR_READ);
  if (!p) return false;
  memcpy(dir, p, sizeof(dir_t));
  return true;
}
uint8_t SdFile :: dirEntry ( dir_t * dir ) { if ( ! sync ( ) ) return false ; dir_t * p = cacheDirEntry ( SdVolume :: CACHE_FOR_READ ) ; if ( ! p ) return false ; memcpy ( dir , p , sizeof ( dir_t ) ) ; return true ; }
Return a files directory entry
 \param[out] dir Location for return of the files directory entry.
Return a files directory entry \ param [ out ] dir Location for return of the files directory entry .
// make sure fields on SD are correct // read entry // copy to caller's struct