Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

class_fs_base_file.html 105KB

pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
pirms 5 gadiem
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.16"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>SdFat: FsBaseFile Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">SdFat
  25. </div>
  26. </td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </div>
  31. <!-- end header part -->
  32. <!-- Generated by Doxygen 1.8.16 -->
  33. <script type="text/javascript">
  34. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. /* @license-end */
  37. </script>
  38. <script type="text/javascript" src="menudata.js"></script>
  39. <script type="text/javascript" src="menu.js"></script>
  40. <script type="text/javascript">
  41. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  42. $(function() {
  43. initMenu('',true,false,'search.php','Search');
  44. $(document).ready(function() { init_search(); });
  45. });
  46. /* @license-end */</script>
  47. <div id="main-nav"></div>
  48. <!-- window showing the filter options -->
  49. <div id="MSearchSelectWindow"
  50. onmouseover="return searchBox.OnSearchSelectShow()"
  51. onmouseout="return searchBox.OnSearchSelectHide()"
  52. onkeydown="return searchBox.OnSearchSelectKey(event)">
  53. </div>
  54. <!-- iframe showing the search results (closed by default) -->
  55. <div id="MSearchResultsWindow">
  56. <iframe src="javascript:void(0)" frameborder="0"
  57. name="MSearchResults" id="MSearchResults">
  58. </iframe>
  59. </div>
  60. </div><!-- top -->
  61. <div class="header">
  62. <div class="summary">
  63. <a href="#pub-methods">Public Member Functions</a> &#124;
  64. <a href="class_fs_base_file-members.html">List of all members</a> </div>
  65. <div class="headertitle">
  66. <div class="title">FsBaseFile Class Reference</div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <p><a class="el" href="class_fs_base_file.html" title="FsBaseFile class.">FsBaseFile</a> class.
  70. <a href="class_fs_base_file.html#details">More...</a></p>
  71. <p><code>#include &lt;FsFile.h&gt;</code></p>
  72. <div class="dynheader">
  73. Inheritance diagram for FsBaseFile:</div>
  74. <div class="dyncontent">
  75. <div class="center"><img src="class_fs_base_file__inherit__graph.png" border="0" usemap="#_fs_base_file_inherit__map" alt="Inheritance graph"/></div>
  76. <map name="_fs_base_file_inherit__map" id="_fs_base_file_inherit__map">
  77. <area shape="rect" title="FsBaseFile class." alt="" coords="45,5,133,32"/>
  78. <area shape="rect" href="class_stream_file.html" title=" " alt="" coords="5,80,172,121"/>
  79. <area shape="rect" href="class_fs_file.html" title="FsBaseFile file with Arduino Stream." alt="" coords="59,169,118,196"/>
  80. </map>
  81. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  82. <table class="memberdecls">
  83. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  84. Public Member Functions</h2></td></tr>
  85. <tr class="memitem:a5762772ce4e72776c2806af21c1251b8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a5762772ce4e72776c2806af21c1251b8">available</a> ()</td></tr>
  86. <tr class="separator:a5762772ce4e72776c2806af21c1251b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:a936fc1e3fb13a6ae1352d027bf0a70f7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a936fc1e3fb13a6ae1352d027bf0a70f7">clearWriteError</a> ()</td></tr>
  88. <tr class="separator:a936fc1e3fb13a6ae1352d027bf0a70f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  89. <tr class="memitem:aa669c695a839e68e417fb15eebe3de13"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#aa669c695a839e68e417fb15eebe3de13">close</a> ()</td></tr>
  90. <tr class="separator:aa669c695a839e68e417fb15eebe3de13"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr class="memitem:a856bccf55a40ebbea27072dcfea06191"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a856bccf55a40ebbea27072dcfea06191">curPosition</a> ()</td></tr>
  92. <tr class="separator:a856bccf55a40ebbea27072dcfea06191"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:ac05660570595552c72164a61001899d5"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#ac05660570595552c72164a61001899d5">dirIndex</a> ()</td></tr>
  94. <tr class="separator:ac05660570595552c72164a61001899d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:a76aea9766ffeae5454381a0704e62505"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a76aea9766ffeae5454381a0704e62505">exists</a> (const char *path)</td></tr>
  96. <tr class="separator:a76aea9766ffeae5454381a0704e62505"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:adda345ec539688e40e279a4e3020d208"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#adda345ec539688e40e279a4e3020d208">fgetpos</a> (fspos_t *pos)</td></tr>
  98. <tr class="separator:adda345ec539688e40e279a4e3020d208"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:ab6b6b97a6382a763d6de882252412727"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#ab6b6b97a6382a763d6de882252412727">fgets</a> (char *str, int num, char *delim=<a class="el" href="_sys_call_8h.html#ab979d9d4b4923f7c54d6caa6e1a61936">nullptr</a>)</td></tr>
  100. <tr class="separator:ab6b6b97a6382a763d6de882252412727"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <tr class="memitem:aef21ae3af496d80f214918bb40b5b3ba"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#aef21ae3af496d80f214918bb40b5b3ba">fileSize</a> ()</td></tr>
  102. <tr class="separator:aef21ae3af496d80f214918bb40b5b3ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:adba2e8ad2ec46ae0f7b8f93b33a2b262"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#adba2e8ad2ec46ae0f7b8f93b33a2b262">flush</a> ()</td></tr>
  104. <tr class="separator:adba2e8ad2ec46ae0f7b8f93b33a2b262"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:a6ddaf9a50682a50bacbddf541c35b017"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a6ddaf9a50682a50bacbddf541c35b017">FsBaseFile</a> (const <a class="el" href="class_fs_base_file.html">FsBaseFile</a> &amp;from)</td></tr>
  106. <tr class="separator:a6ddaf9a50682a50bacbddf541c35b017"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a4bc085bc1ef0569f4ca7f14fff3e5678"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a4bc085bc1ef0569f4ca7f14fff3e5678">fsetpos</a> (const fspos_t *pos)</td></tr>
  108. <tr class="separator:a4bc085bc1ef0569f4ca7f14fff3e5678"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:a7553d4aeb68fe8d3f1b61a16c8005e34"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a7553d4aeb68fe8d3f1b61a16c8005e34">getError</a> ()</td></tr>
  110. <tr class="separator:a7553d4aeb68fe8d3f1b61a16c8005e34"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:ad2099dbe6bb8f61e1bf933d8e97b2d86"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#ad2099dbe6bb8f61e1bf933d8e97b2d86">getName</a> (char *<a class="el" href="class_fs_base_file.html#a6ccd545042d98841246edfbf2f482677">name</a>, size_t len)</td></tr>
  112. <tr class="separator:ad2099dbe6bb8f61e1bf933d8e97b2d86"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:ab5525bef93bab61569225374d475f2cb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#ab5525bef93bab61569225374d475f2cb">getWriteError</a> ()</td></tr>
  114. <tr class="separator:ab5525bef93bab61569225374d475f2cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:ae93db43779d54734855005116244f6aa"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#ae93db43779d54734855005116244f6aa">isDir</a> ()</td></tr>
  116. <tr class="separator:ae93db43779d54734855005116244f6aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:aa564175ba0065803013338d89510ea81"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#aa564175ba0065803013338d89510ea81">isDirectory</a> ()</td></tr>
  118. <tr class="separator:aa564175ba0065803013338d89510ea81"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:a00e76b229cbb5098e1eb88e64a41dbfb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a00e76b229cbb5098e1eb88e64a41dbfb">isHidden</a> ()</td></tr>
  120. <tr class="separator:a00e76b229cbb5098e1eb88e64a41dbfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a707007ff19ac5e4eb94cd0b26c542e0e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a707007ff19ac5e4eb94cd0b26c542e0e">isOpen</a> ()</td></tr>
  122. <tr class="separator:a707007ff19ac5e4eb94cd0b26c542e0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:a3140f64c85218c4b2f12f711483cd4c6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a3140f64c85218c4b2f12f711483cd4c6">isSubDir</a> ()</td></tr>
  124. <tr class="separator:a3140f64c85218c4b2f12f711483cd4c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:aecbc336b952eebebfdfcf917863183ee"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#aecbc336b952eebebfdfcf917863183ee">ls</a> (<a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr)</td></tr>
  126. <tr class="separator:aecbc336b952eebebfdfcf917863183ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:a6a254df9866966f7f97478e916fe6a7f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a6a254df9866966f7f97478e916fe6a7f">ls</a> (<a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr, uint8_t flags)</td></tr>
  128. <tr class="separator:a6a254df9866966f7f97478e916fe6a7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a8b7aa7f2c63882e483336dfe12ef6800"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a8b7aa7f2c63882e483336dfe12ef6800">mkdir</a> (<a class="el" href="class_fs_base_file.html">FsBaseFile</a> *dir, const char *path, bool pFlag=true)</td></tr>
  130. <tr class="separator:a8b7aa7f2c63882e483336dfe12ef6800"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a6ccd545042d98841246edfbf2f482677"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a6ccd545042d98841246edfbf2f482677">name</a> () const</td></tr>
  132. <tr class="separator:a6ccd545042d98841246edfbf2f482677"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:af44f0decd9b11dd45996e81f46e2cdee"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#af44f0decd9b11dd45996e81f46e2cdee">open</a> (const char *path, oflag_t oflag=O_RDONLY)</td></tr>
  134. <tr class="separator:af44f0decd9b11dd45996e81f46e2cdee"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:aa767859d4a4b4716ebbc4ea42a6d74df"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#aa767859d4a4b4716ebbc4ea42a6d74df">open</a> (<a class="el" href="class_fs_base_file.html">FsBaseFile</a> *dir, const char *path, oflag_t oflag=O_RDONLY)</td></tr>
  136. <tr class="separator:aa767859d4a4b4716ebbc4ea42a6d74df"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:ac4edea1afb935119ecaf39607016c3cc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#ac4edea1afb935119ecaf39607016c3cc">open</a> (<a class="el" href="class_fs_base_file.html">FsBaseFile</a> *dir, uint32_t index, oflag_t oflag)</td></tr>
  138. <tr class="separator:ac4edea1afb935119ecaf39607016c3cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:a9786eb47f5d001e89ff291c271517547"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a9786eb47f5d001e89ff291c271517547">open</a> (<a class="el" href="class_fs_volume.html">FsVolume</a> *vol, const char *path, oflag_t oflag)</td></tr>
  140. <tr class="separator:a9786eb47f5d001e89ff291c271517547"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:acb9b1075f4db76fa7e0521c9aff9c3df"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#acb9b1075f4db76fa7e0521c9aff9c3df">openNext</a> (<a class="el" href="class_fs_base_file.html">FsBaseFile</a> *dir, oflag_t oflag=O_RDONLY)</td></tr>
  142. <tr class="separator:acb9b1075f4db76fa7e0521c9aff9c3df"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:a3ad633f3efc2701a3a89e776436b14e1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a3ad633f3efc2701a3a89e776436b14e1">operator bool</a> ()</td></tr>
  144. <tr class="separator:a3ad633f3efc2701a3a89e776436b14e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:ae4f6d168072bb4f2a61976f621659d20"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_fs_base_file.html">FsBaseFile</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#ae4f6d168072bb4f2a61976f621659d20">operator=</a> (const <a class="el" href="class_fs_base_file.html">FsBaseFile</a> &amp;from)</td></tr>
  146. <tr class="separator:ae4f6d168072bb4f2a61976f621659d20"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:adc49cb204f293a28b67af64c49c4c9f3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#adc49cb204f293a28b67af64c49c4c9f3">peek</a> ()</td></tr>
  148. <tr class="separator:adc49cb204f293a28b67af64c49c4c9f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a8d5ea7284de7ec0bfdb0b2294001f015"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a8d5ea7284de7ec0bfdb0b2294001f015">position</a> ()</td></tr>
  150. <tr class="separator:a8d5ea7284de7ec0bfdb0b2294001f015"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:acbc037f9f07c57235bb8b30af5a53ac2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#acbc037f9f07c57235bb8b30af5a53ac2">preAllocate</a> (uint64_t length)</td></tr>
  152. <tr class="separator:acbc037f9f07c57235bb8b30af5a53ac2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:a264ba61530aee50dbe9659d41dd2c1d6"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a264ba61530aee50dbe9659d41dd2c1d6">printAccessDateTime</a> (<a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr)</td></tr>
  154. <tr class="separator:a264ba61530aee50dbe9659d41dd2c1d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:a3f75ac7eb6643afcabae28e8c93479c8"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a3f75ac7eb6643afcabae28e8c93479c8">printCreateDateTime</a> (<a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr)</td></tr>
  156. <tr class="separator:a3f75ac7eb6643afcabae28e8c93479c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. <tr class="memitem:a911ae825e67d7e6ade4a672595e060d6"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a911ae825e67d7e6ade4a672595e060d6">printField</a> (double value, char term, uint8_t prec=2)</td></tr>
  158. <tr class="separator:a911ae825e67d7e6ade4a672595e060d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:a5dd2738efe2e550f56037536bc252f13"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a5dd2738efe2e550f56037536bc252f13">printField</a> (float value, char term, uint8_t prec=2)</td></tr>
  160. <tr class="separator:a5dd2738efe2e550f56037536bc252f13"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <tr class="memitem:a45639312b8c5aa9ceddb19e654e902b4"><td class="memTemplParams" colspan="2">template&lt;typename Type &gt; </td></tr>
  162. <tr class="memitem:a45639312b8c5aa9ceddb19e654e902b4"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a45639312b8c5aa9ceddb19e654e902b4">printField</a> (Type value, char term)</td></tr>
  163. <tr class="separator:a45639312b8c5aa9ceddb19e654e902b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  164. <tr class="memitem:a6760471e3c445f66b94f3f0e96fdfe10"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a6760471e3c445f66b94f3f0e96fdfe10">printFileSize</a> (<a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr)</td></tr>
  165. <tr class="separator:a6760471e3c445f66b94f3f0e96fdfe10"><td class="memSeparator" colspan="2">&#160;</td></tr>
  166. <tr class="memitem:a0f2f813496fa156f9808a5d33c2d8746"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a0f2f813496fa156f9808a5d33c2d8746">printModifyDateTime</a> (<a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr)</td></tr>
  167. <tr class="separator:a0f2f813496fa156f9808a5d33c2d8746"><td class="memSeparator" colspan="2">&#160;</td></tr>
  168. <tr class="memitem:a178a1cbe2bce19758a55bd00fa262732"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a178a1cbe2bce19758a55bd00fa262732">printName</a> (<a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr)</td></tr>
  169. <tr class="separator:a178a1cbe2bce19758a55bd00fa262732"><td class="memSeparator" colspan="2">&#160;</td></tr>
  170. <tr class="memitem:acbe2d203d212a50871db77a9b2ba01f6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#acbe2d203d212a50871db77a9b2ba01f6">read</a> ()</td></tr>
  171. <tr class="separator:acbe2d203d212a50871db77a9b2ba01f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  172. <tr class="memitem:ae8d8cb4cceda9d56e8dae692d04a46e6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#ae8d8cb4cceda9d56e8dae692d04a46e6">read</a> (void *buf, size_t count)</td></tr>
  173. <tr class="separator:ae8d8cb4cceda9d56e8dae692d04a46e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:a8d21f9df86e846e34c3bb11cf7db21bc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a8d21f9df86e846e34c3bb11cf7db21bc">remove</a> ()</td></tr>
  175. <tr class="separator:a8d21f9df86e846e34c3bb11cf7db21bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  176. <tr class="memitem:a64feff69c4f09e56247c7f9dc7c74f34"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a64feff69c4f09e56247c7f9dc7c74f34">remove</a> (const char *path)</td></tr>
  177. <tr class="separator:a64feff69c4f09e56247c7f9dc7c74f34"><td class="memSeparator" colspan="2">&#160;</td></tr>
  178. <tr class="memitem:af532d87177e86995a053503eb9152115"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#af532d87177e86995a053503eb9152115">rename</a> (const char *newPath)</td></tr>
  179. <tr class="separator:af532d87177e86995a053503eb9152115"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr class="memitem:a4e4347f6e89bf0b487824dbdc5b82068"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a4e4347f6e89bf0b487824dbdc5b82068">rename</a> (<a class="el" href="class_fs_base_file.html">FsBaseFile</a> *dirFile, const char *newPath)</td></tr>
  181. <tr class="separator:a4e4347f6e89bf0b487824dbdc5b82068"><td class="memSeparator" colspan="2">&#160;</td></tr>
  182. <tr class="memitem:a22f8ef845d610493ebe314e19ddda561"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a22f8ef845d610493ebe314e19ddda561">rewind</a> ()</td></tr>
  183. <tr class="separator:a22f8ef845d610493ebe314e19ddda561"><td class="memSeparator" colspan="2">&#160;</td></tr>
  184. <tr class="memitem:a56bfeb031562a6fb30e057670e6b326d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a56bfeb031562a6fb30e057670e6b326d">rewindDirectory</a> ()</td></tr>
  185. <tr class="separator:a56bfeb031562a6fb30e057670e6b326d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  186. <tr class="memitem:ac47870fd89b0849cda33f2780918a286"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#ac47870fd89b0849cda33f2780918a286">rmdir</a> ()</td></tr>
  187. <tr class="separator:ac47870fd89b0849cda33f2780918a286"><td class="memSeparator" colspan="2">&#160;</td></tr>
  188. <tr class="memitem:ae86486f4e20f4924797124f9c6042bfd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#ae86486f4e20f4924797124f9c6042bfd">seek</a> (uint64_t pos)</td></tr>
  189. <tr class="separator:ae86486f4e20f4924797124f9c6042bfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  190. <tr class="memitem:a5fa242a4598eab5caa6efd4bdf62f5c0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a5fa242a4598eab5caa6efd4bdf62f5c0">seekCur</a> (int64_t offset)</td></tr>
  191. <tr class="separator:a5fa242a4598eab5caa6efd4bdf62f5c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  192. <tr class="memitem:ade9f9a9ac4d3e0a392a6cc45c9551767"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#ade9f9a9ac4d3e0a392a6cc45c9551767">seekEnd</a> (int64_t offset=0)</td></tr>
  193. <tr class="separator:ade9f9a9ac4d3e0a392a6cc45c9551767"><td class="memSeparator" colspan="2">&#160;</td></tr>
  194. <tr class="memitem:a460f7598c903b8a4b4fe868dacccb6dd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a460f7598c903b8a4b4fe868dacccb6dd">seekSet</a> (uint64_t pos)</td></tr>
  195. <tr class="separator:a460f7598c903b8a4b4fe868dacccb6dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  196. <tr class="memitem:a1c27b009372668a9c2de4a57195b0b36"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a1c27b009372668a9c2de4a57195b0b36">size</a> ()</td></tr>
  197. <tr class="separator:a1c27b009372668a9c2de4a57195b0b36"><td class="memSeparator" colspan="2">&#160;</td></tr>
  198. <tr class="memitem:acf2d9261c5c1b1b022a0414cdfe0a17b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#acf2d9261c5c1b1b022a0414cdfe0a17b">sync</a> ()</td></tr>
  199. <tr class="separator:acf2d9261c5c1b1b022a0414cdfe0a17b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  200. <tr class="memitem:acea65e639feebaac01964af02a77d324"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#acea65e639feebaac01964af02a77d324">timestamp</a> (uint8_t flags, uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second)</td></tr>
  201. <tr class="separator:acea65e639feebaac01964af02a77d324"><td class="memSeparator" colspan="2">&#160;</td></tr>
  202. <tr class="memitem:a2a0bf00241df08a604f054512746986b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a2a0bf00241df08a604f054512746986b">truncate</a> ()</td></tr>
  203. <tr class="separator:a2a0bf00241df08a604f054512746986b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  204. <tr class="memitem:a47247cc54157ef79e0752f55ba01cf7e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a47247cc54157ef79e0752f55ba01cf7e">truncate</a> (uint64_t length)</td></tr>
  205. <tr class="separator:a47247cc54157ef79e0752f55ba01cf7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  206. <tr class="memitem:aa763e83fea4889828effc3308f13113a"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#aa763e83fea4889828effc3308f13113a">write</a> (const void *buf, size_t count)</td></tr>
  207. <tr class="separator:aa763e83fea4889828effc3308f13113a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  208. <tr class="memitem:a023c0392aa72b32652546f48ef8ba1e5"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fs_base_file.html#a023c0392aa72b32652546f48ef8ba1e5">write</a> (uint8_t b)</td></tr>
  209. <tr class="separator:a023c0392aa72b32652546f48ef8ba1e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  210. </table>
  211. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  212. <div class="textblock"><p><a class="el" href="class_fs_base_file.html" title="FsBaseFile class.">FsBaseFile</a> class. </p>
  213. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  214. <a id="a6ddaf9a50682a50bacbddf541c35b017"></a>
  215. <h2 class="memtitle"><span class="permalink"><a href="#a6ddaf9a50682a50bacbddf541c35b017">&#9670;&nbsp;</a></span>FsBaseFile()</h2>
  216. <div class="memitem">
  217. <div class="memproto">
  218. <table class="memname">
  219. <tr>
  220. <td class="memname">FsBaseFile::FsBaseFile </td>
  221. <td>(</td>
  222. <td class="paramtype">const <a class="el" href="class_fs_base_file.html">FsBaseFile</a> &amp;&#160;</td>
  223. <td class="paramname"><em>from</em></td><td>)</td>
  224. <td></td>
  225. </tr>
  226. </table>
  227. </div><div class="memdoc">
  228. <p>Copy constructor.</p>
  229. <dl class="params"><dt>Parameters</dt><dd>
  230. <table class="params">
  231. <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>Object used to initialize this instance.</td></tr>
  232. </table>
  233. </dd>
  234. </dl>
  235. <p>Copyright (c) 2011-2019 Bill Greiman This file is part of the SdFat library for SD memory cards.</p>
  236. <p>MIT License</p>
  237. <p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
  238. <p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
  239. <p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. </p>
  240. </div>
  241. </div>
  242. <h2 class="groupheader">Member Function Documentation</h2>
  243. <a id="a5762772ce4e72776c2806af21c1251b8"></a>
  244. <h2 class="memtitle"><span class="permalink"><a href="#a5762772ce4e72776c2806af21c1251b8">&#9670;&nbsp;</a></span>available()</h2>
  245. <div class="memitem">
  246. <div class="memproto">
  247. <table class="mlabels">
  248. <tr>
  249. <td class="mlabels-left">
  250. <table class="memname">
  251. <tr>
  252. <td class="memname">int FsBaseFile::available </td>
  253. <td>(</td>
  254. <td class="paramname"></td><td>)</td>
  255. <td></td>
  256. </tr>
  257. </table>
  258. </td>
  259. <td class="mlabels-right">
  260. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  261. </tr>
  262. </table>
  263. </div><div class="memdoc">
  264. <dl class="section return"><dt>Returns</dt><dd>number of bytes available from the current position to EOF or INT_MAX if more than INT_MAX bytes are available. </dd></dl>
  265. </div>
  266. </div>
  267. <a id="a936fc1e3fb13a6ae1352d027bf0a70f7"></a>
  268. <h2 class="memtitle"><span class="permalink"><a href="#a936fc1e3fb13a6ae1352d027bf0a70f7">&#9670;&nbsp;</a></span>clearWriteError()</h2>
  269. <div class="memitem">
  270. <div class="memproto">
  271. <table class="mlabels">
  272. <tr>
  273. <td class="mlabels-left">
  274. <table class="memname">
  275. <tr>
  276. <td class="memname">void FsBaseFile::clearWriteError </td>
  277. <td>(</td>
  278. <td class="paramname"></td><td>)</td>
  279. <td></td>
  280. </tr>
  281. </table>
  282. </td>
  283. <td class="mlabels-right">
  284. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  285. </tr>
  286. </table>
  287. </div><div class="memdoc">
  288. <p>Set writeError to zero </p>
  289. </div>
  290. </div>
  291. <a id="aa669c695a839e68e417fb15eebe3de13"></a>
  292. <h2 class="memtitle"><span class="permalink"><a href="#aa669c695a839e68e417fb15eebe3de13">&#9670;&nbsp;</a></span>close()</h2>
  293. <div class="memitem">
  294. <div class="memproto">
  295. <table class="memname">
  296. <tr>
  297. <td class="memname">bool FsBaseFile::close </td>
  298. <td>(</td>
  299. <td class="paramname"></td><td>)</td>
  300. <td></td>
  301. </tr>
  302. </table>
  303. </div><div class="memdoc">
  304. <p>Close a file and force cached data and directory information to be written to the storage device.</p>
  305. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  306. </div>
  307. </div>
  308. <a id="a856bccf55a40ebbea27072dcfea06191"></a>
  309. <h2 class="memtitle"><span class="permalink"><a href="#a856bccf55a40ebbea27072dcfea06191">&#9670;&nbsp;</a></span>curPosition()</h2>
  310. <div class="memitem">
  311. <div class="memproto">
  312. <table class="mlabels">
  313. <tr>
  314. <td class="mlabels-left">
  315. <table class="memname">
  316. <tr>
  317. <td class="memname">uint64_t FsBaseFile::curPosition </td>
  318. <td>(</td>
  319. <td class="paramname"></td><td>)</td>
  320. <td></td>
  321. </tr>
  322. </table>
  323. </td>
  324. <td class="mlabels-right">
  325. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  326. </tr>
  327. </table>
  328. </div><div class="memdoc">
  329. <dl class="section return"><dt>Returns</dt><dd>The current position for a file or directory. </dd></dl>
  330. </div>
  331. </div>
  332. <a id="ac05660570595552c72164a61001899d5"></a>
  333. <h2 class="memtitle"><span class="permalink"><a href="#ac05660570595552c72164a61001899d5">&#9670;&nbsp;</a></span>dirIndex()</h2>
  334. <div class="memitem">
  335. <div class="memproto">
  336. <table class="mlabels">
  337. <tr>
  338. <td class="mlabels-left">
  339. <table class="memname">
  340. <tr>
  341. <td class="memname">uint32_t FsBaseFile::dirIndex </td>
  342. <td>(</td>
  343. <td class="paramname"></td><td>)</td>
  344. <td></td>
  345. </tr>
  346. </table>
  347. </td>
  348. <td class="mlabels-right">
  349. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  350. </tr>
  351. </table>
  352. </div><div class="memdoc">
  353. <dl class="section return"><dt>Returns</dt><dd>Directory entry index. </dd></dl>
  354. </div>
  355. </div>
  356. <a id="a76aea9766ffeae5454381a0704e62505"></a>
  357. <h2 class="memtitle"><span class="permalink"><a href="#a76aea9766ffeae5454381a0704e62505">&#9670;&nbsp;</a></span>exists()</h2>
  358. <div class="memitem">
  359. <div class="memproto">
  360. <table class="mlabels">
  361. <tr>
  362. <td class="mlabels-left">
  363. <table class="memname">
  364. <tr>
  365. <td class="memname">bool FsBaseFile::exists </td>
  366. <td>(</td>
  367. <td class="paramtype">const char *&#160;</td>
  368. <td class="paramname"><em>path</em></td><td>)</td>
  369. <td></td>
  370. </tr>
  371. </table>
  372. </td>
  373. <td class="mlabels-right">
  374. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  375. </tr>
  376. </table>
  377. </div><div class="memdoc">
  378. <p>Test for the existence of a file in a directory</p>
  379. <dl class="params"><dt>Parameters</dt><dd>
  380. <table class="params">
  381. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>Path of the file to be tested for.</td></tr>
  382. </table>
  383. </dd>
  384. </dl>
  385. <p>The calling instance must be an open directory file.</p>
  386. <p>dirFile.exists("TOFIND.TXT") searches for "TOFIND.TXT" in the directory dirFile.</p>
  387. <dl class="section return"><dt>Returns</dt><dd>true if the file exists else false. </dd></dl>
  388. </div>
  389. </div>
  390. <a id="adda345ec539688e40e279a4e3020d208"></a>
  391. <h2 class="memtitle"><span class="permalink"><a href="#adda345ec539688e40e279a4e3020d208">&#9670;&nbsp;</a></span>fgetpos()</h2>
  392. <div class="memitem">
  393. <div class="memproto">
  394. <table class="mlabels">
  395. <tr>
  396. <td class="mlabels-left">
  397. <table class="memname">
  398. <tr>
  399. <td class="memname">void FsBaseFile::fgetpos </td>
  400. <td>(</td>
  401. <td class="paramtype">fspos_t *&#160;</td>
  402. <td class="paramname"><em>pos</em></td><td>)</td>
  403. <td></td>
  404. </tr>
  405. </table>
  406. </td>
  407. <td class="mlabels-right">
  408. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  409. </tr>
  410. </table>
  411. </div><div class="memdoc">
  412. <p>get position for streams </p><dl class="params"><dt>Parameters</dt><dd>
  413. <table class="params">
  414. <tr><td class="paramdir">[out]</td><td class="paramname">pos</td><td>struct to receive position </td></tr>
  415. </table>
  416. </dd>
  417. </dl>
  418. </div>
  419. </div>
  420. <a id="ab6b6b97a6382a763d6de882252412727"></a>
  421. <h2 class="memtitle"><span class="permalink"><a href="#ab6b6b97a6382a763d6de882252412727">&#9670;&nbsp;</a></span>fgets()</h2>
  422. <div class="memitem">
  423. <div class="memproto">
  424. <table class="mlabels">
  425. <tr>
  426. <td class="mlabels-left">
  427. <table class="memname">
  428. <tr>
  429. <td class="memname">int FsBaseFile::fgets </td>
  430. <td>(</td>
  431. <td class="paramtype">char *&#160;</td>
  432. <td class="paramname"><em>str</em>, </td>
  433. </tr>
  434. <tr>
  435. <td class="paramkey"></td>
  436. <td></td>
  437. <td class="paramtype">int&#160;</td>
  438. <td class="paramname"><em>num</em>, </td>
  439. </tr>
  440. <tr>
  441. <td class="paramkey"></td>
  442. <td></td>
  443. <td class="paramtype">char *&#160;</td>
  444. <td class="paramname"><em>delim</em> = <code><a class="el" href="_sys_call_8h.html#ab979d9d4b4923f7c54d6caa6e1a61936">nullptr</a></code>&#160;</td>
  445. </tr>
  446. <tr>
  447. <td></td>
  448. <td>)</td>
  449. <td></td><td></td>
  450. </tr>
  451. </table>
  452. </td>
  453. <td class="mlabels-right">
  454. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  455. </tr>
  456. </table>
  457. </div><div class="memdoc">
  458. <p>Get a string from a file.</p>
  459. <p><a class="el" href="class_fs_base_file.html#ab6b6b97a6382a763d6de882252412727">fgets()</a> reads bytes from a file into the array pointed to by <em>str</em>, until <em>num</em> - 1 bytes are read, or a delimiter is read and transferred to <em>str</em>, or end-of-file is encountered. The string is then terminated with a null byte.</p>
  460. <p><a class="el" href="class_fs_base_file.html#ab6b6b97a6382a763d6de882252412727">fgets()</a> deletes CR, '\r', from the string. This insures only a '\n' terminates the string for Windows text files which use CRLF for newline.</p>
  461. <dl class="params"><dt>Parameters</dt><dd>
  462. <table class="params">
  463. <tr><td class="paramdir">[out]</td><td class="paramname">str</td><td>Pointer to the array where the string is stored. </td></tr>
  464. <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>Maximum number of characters to be read (including the final null byte). Usually the length of the array <em>str</em> is used. </td></tr>
  465. <tr><td class="paramdir">[in]</td><td class="paramname">delim</td><td>Optional set of delimiters. The default is "\n".</td></tr>
  466. </table>
  467. </dd>
  468. </dl>
  469. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_fs_base_file.html#ab6b6b97a6382a763d6de882252412727">fgets()</a> returns the length of the string in <em>str</em>. If no data is read, <a class="el" href="class_fs_base_file.html#ab6b6b97a6382a763d6de882252412727">fgets()</a> returns zero for EOF or -1 if an error occurred. </dd></dl>
  470. </div>
  471. </div>
  472. <a id="aef21ae3af496d80f214918bb40b5b3ba"></a>
  473. <h2 class="memtitle"><span class="permalink"><a href="#aef21ae3af496d80f214918bb40b5b3ba">&#9670;&nbsp;</a></span>fileSize()</h2>
  474. <div class="memitem">
  475. <div class="memproto">
  476. <table class="mlabels">
  477. <tr>
  478. <td class="mlabels-left">
  479. <table class="memname">
  480. <tr>
  481. <td class="memname">uint64_t FsBaseFile::fileSize </td>
  482. <td>(</td>
  483. <td class="paramname"></td><td>)</td>
  484. <td></td>
  485. </tr>
  486. </table>
  487. </td>
  488. <td class="mlabels-right">
  489. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  490. </tr>
  491. </table>
  492. </div><div class="memdoc">
  493. <dl class="section return"><dt>Returns</dt><dd>The total number of bytes in a file. </dd></dl>
  494. </div>
  495. </div>
  496. <a id="adba2e8ad2ec46ae0f7b8f93b33a2b262"></a>
  497. <h2 class="memtitle"><span class="permalink"><a href="#adba2e8ad2ec46ae0f7b8f93b33a2b262">&#9670;&nbsp;</a></span>flush()</h2>
  498. <div class="memitem">
  499. <div class="memproto">
  500. <table class="mlabels">
  501. <tr>
  502. <td class="mlabels-left">
  503. <table class="memname">
  504. <tr>
  505. <td class="memname">void FsBaseFile::flush </td>
  506. <td>(</td>
  507. <td class="paramname"></td><td>)</td>
  508. <td></td>
  509. </tr>
  510. </table>
  511. </td>
  512. <td class="mlabels-right">
  513. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  514. </tr>
  515. </table>
  516. </div><div class="memdoc">
  517. <p>Ensure that any bytes written to the file are saved to the SD card. </p>
  518. </div>
  519. </div>
  520. <a id="a4bc085bc1ef0569f4ca7f14fff3e5678"></a>
  521. <h2 class="memtitle"><span class="permalink"><a href="#a4bc085bc1ef0569f4ca7f14fff3e5678">&#9670;&nbsp;</a></span>fsetpos()</h2>
  522. <div class="memitem">
  523. <div class="memproto">
  524. <table class="mlabels">
  525. <tr>
  526. <td class="mlabels-left">
  527. <table class="memname">
  528. <tr>
  529. <td class="memname">void FsBaseFile::fsetpos </td>
  530. <td>(</td>
  531. <td class="paramtype">const fspos_t *&#160;</td>
  532. <td class="paramname"><em>pos</em></td><td>)</td>
  533. <td></td>
  534. </tr>
  535. </table>
  536. </td>
  537. <td class="mlabels-right">
  538. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  539. </tr>
  540. </table>
  541. </div><div class="memdoc">
  542. <p>set position for streams </p><dl class="params"><dt>Parameters</dt><dd>
  543. <table class="params">
  544. <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>struct with value for new position </td></tr>
  545. </table>
  546. </dd>
  547. </dl>
  548. </div>
  549. </div>
  550. <a id="a7553d4aeb68fe8d3f1b61a16c8005e34"></a>
  551. <h2 class="memtitle"><span class="permalink"><a href="#a7553d4aeb68fe8d3f1b61a16c8005e34">&#9670;&nbsp;</a></span>getError()</h2>
  552. <div class="memitem">
  553. <div class="memproto">
  554. <table class="mlabels">
  555. <tr>
  556. <td class="mlabels-left">
  557. <table class="memname">
  558. <tr>
  559. <td class="memname">uint8_t FsBaseFile::getError </td>
  560. <td>(</td>
  561. <td class="paramname"></td><td>)</td>
  562. <td></td>
  563. </tr>
  564. </table>
  565. </td>
  566. <td class="mlabels-right">
  567. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  568. </tr>
  569. </table>
  570. </div><div class="memdoc">
  571. <dl class="section return"><dt>Returns</dt><dd>All error bits. </dd></dl>
  572. </div>
  573. </div>
  574. <a id="ad2099dbe6bb8f61e1bf933d8e97b2d86"></a>
  575. <h2 class="memtitle"><span class="permalink"><a href="#ad2099dbe6bb8f61e1bf933d8e97b2d86">&#9670;&nbsp;</a></span>getName()</h2>
  576. <div class="memitem">
  577. <div class="memproto">
  578. <table class="mlabels">
  579. <tr>
  580. <td class="mlabels-left">
  581. <table class="memname">
  582. <tr>
  583. <td class="memname">size_t FsBaseFile::getName </td>
  584. <td>(</td>
  585. <td class="paramtype">char *&#160;</td>
  586. <td class="paramname"><em>name</em>, </td>
  587. </tr>
  588. <tr>
  589. <td class="paramkey"></td>
  590. <td></td>
  591. <td class="paramtype">size_t&#160;</td>
  592. <td class="paramname"><em>len</em>&#160;</td>
  593. </tr>
  594. <tr>
  595. <td></td>
  596. <td>)</td>
  597. <td></td><td></td>
  598. </tr>
  599. </table>
  600. </td>
  601. <td class="mlabels-right">
  602. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  603. </tr>
  604. </table>
  605. </div><div class="memdoc">
  606. <p>Get a file's name followed by a zero byte.</p>
  607. <dl class="params"><dt>Parameters</dt><dd>
  608. <table class="params">
  609. <tr><td class="paramdir">[out]</td><td class="paramname">name</td><td>An array of characters for the file's name. </td></tr>
  610. <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>The size of the array in bytes. The array must be at least 13 bytes long. The file's name will be truncated if the file's name is too long. </td></tr>
  611. </table>
  612. </dd>
  613. </dl>
  614. <dl class="section return"><dt>Returns</dt><dd>The length of the returned string. </dd></dl>
  615. </div>
  616. </div>
  617. <a id="ab5525bef93bab61569225374d475f2cb"></a>
  618. <h2 class="memtitle"><span class="permalink"><a href="#ab5525bef93bab61569225374d475f2cb">&#9670;&nbsp;</a></span>getWriteError()</h2>
  619. <div class="memitem">
  620. <div class="memproto">
  621. <table class="mlabels">
  622. <tr>
  623. <td class="mlabels-left">
  624. <table class="memname">
  625. <tr>
  626. <td class="memname">bool FsBaseFile::getWriteError </td>
  627. <td>(</td>
  628. <td class="paramname"></td><td>)</td>
  629. <td></td>
  630. </tr>
  631. </table>
  632. </td>
  633. <td class="mlabels-right">
  634. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  635. </tr>
  636. </table>
  637. </div><div class="memdoc">
  638. <dl class="section return"><dt>Returns</dt><dd>value of writeError </dd></dl>
  639. </div>
  640. </div>
  641. <a id="ae93db43779d54734855005116244f6aa"></a>
  642. <h2 class="memtitle"><span class="permalink"><a href="#ae93db43779d54734855005116244f6aa">&#9670;&nbsp;</a></span>isDir()</h2>
  643. <div class="memitem">
  644. <div class="memproto">
  645. <table class="mlabels">
  646. <tr>
  647. <td class="mlabels-left">
  648. <table class="memname">
  649. <tr>
  650. <td class="memname">bool FsBaseFile::isDir </td>
  651. <td>(</td>
  652. <td class="paramname"></td><td>)</td>
  653. <td></td>
  654. </tr>
  655. </table>
  656. </td>
  657. <td class="mlabels-right">
  658. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  659. </tr>
  660. </table>
  661. </div><div class="memdoc">
  662. <dl class="section return"><dt>Returns</dt><dd>True if this is a directory else false. </dd></dl>
  663. </div>
  664. </div>
  665. <a id="aa564175ba0065803013338d89510ea81"></a>
  666. <h2 class="memtitle"><span class="permalink"><a href="#aa564175ba0065803013338d89510ea81">&#9670;&nbsp;</a></span>isDirectory()</h2>
  667. <div class="memitem">
  668. <div class="memproto">
  669. <table class="mlabels">
  670. <tr>
  671. <td class="mlabels-left">
  672. <table class="memname">
  673. <tr>
  674. <td class="memname">bool FsBaseFile::isDirectory </td>
  675. <td>(</td>
  676. <td class="paramname"></td><td>)</td>
  677. <td></td>
  678. </tr>
  679. </table>
  680. </td>
  681. <td class="mlabels-right">
  682. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  683. </tr>
  684. </table>
  685. </div><div class="memdoc">
  686. <p>This function reports if the current file is a directory or not. </p><dl class="section return"><dt>Returns</dt><dd>true if the file is a directory. </dd></dl>
  687. </div>
  688. </div>
  689. <a id="a00e76b229cbb5098e1eb88e64a41dbfb"></a>
  690. <h2 class="memtitle"><span class="permalink"><a href="#a00e76b229cbb5098e1eb88e64a41dbfb">&#9670;&nbsp;</a></span>isHidden()</h2>
  691. <div class="memitem">
  692. <div class="memproto">
  693. <table class="mlabels">
  694. <tr>
  695. <td class="mlabels-left">
  696. <table class="memname">
  697. <tr>
  698. <td class="memname">bool FsBaseFile::isHidden </td>
  699. <td>(</td>
  700. <td class="paramname"></td><td>)</td>
  701. <td></td>
  702. </tr>
  703. </table>
  704. </td>
  705. <td class="mlabels-right">
  706. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  707. </tr>
  708. </table>
  709. </div><div class="memdoc">
  710. <dl class="section return"><dt>Returns</dt><dd>True if this is a hidden file else false. </dd></dl>
  711. </div>
  712. </div>
  713. <a id="a707007ff19ac5e4eb94cd0b26c542e0e"></a>
  714. <h2 class="memtitle"><span class="permalink"><a href="#a707007ff19ac5e4eb94cd0b26c542e0e">&#9670;&nbsp;</a></span>isOpen()</h2>
  715. <div class="memitem">
  716. <div class="memproto">
  717. <table class="mlabels">
  718. <tr>
  719. <td class="mlabels-left">
  720. <table class="memname">
  721. <tr>
  722. <td class="memname">bool FsBaseFile::isOpen </td>
  723. <td>(</td>
  724. <td class="paramname"></td><td>)</td>
  725. <td></td>
  726. </tr>
  727. </table>
  728. </td>
  729. <td class="mlabels-right">
  730. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  731. </tr>
  732. </table>
  733. </div><div class="memdoc">
  734. <dl class="section return"><dt>Returns</dt><dd>True if this is an open file/directory else false. </dd></dl>
  735. </div>
  736. </div>
  737. <a id="a3140f64c85218c4b2f12f711483cd4c6"></a>
  738. <h2 class="memtitle"><span class="permalink"><a href="#a3140f64c85218c4b2f12f711483cd4c6">&#9670;&nbsp;</a></span>isSubDir()</h2>
  739. <div class="memitem">
  740. <div class="memproto">
  741. <table class="mlabels">
  742. <tr>
  743. <td class="mlabels-left">
  744. <table class="memname">
  745. <tr>
  746. <td class="memname">bool FsBaseFile::isSubDir </td>
  747. <td>(</td>
  748. <td class="paramname"></td><td>)</td>
  749. <td></td>
  750. </tr>
  751. </table>
  752. </td>
  753. <td class="mlabels-right">
  754. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  755. </tr>
  756. </table>
  757. </div><div class="memdoc">
  758. <dl class="section return"><dt>Returns</dt><dd>True if this is a subdirectory file else false. </dd></dl>
  759. </div>
  760. </div>
  761. <a id="aecbc336b952eebebfdfcf917863183ee"></a>
  762. <h2 class="memtitle"><span class="permalink"><a href="#aecbc336b952eebebfdfcf917863183ee">&#9670;&nbsp;</a></span>ls() <span class="overload">[1/2]</span></h2>
  763. <div class="memitem">
  764. <div class="memproto">
  765. <table class="mlabels">
  766. <tr>
  767. <td class="mlabels-left">
  768. <table class="memname">
  769. <tr>
  770. <td class="memname">bool FsBaseFile::ls </td>
  771. <td>(</td>
  772. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  773. <td class="paramname"><em>pr</em></td><td>)</td>
  774. <td></td>
  775. </tr>
  776. </table>
  777. </td>
  778. <td class="mlabels-right">
  779. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  780. </tr>
  781. </table>
  782. </div><div class="memdoc">
  783. <p>List directory contents.</p>
  784. <dl class="params"><dt>Parameters</dt><dd>
  785. <table class="params">
  786. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print object.</td></tr>
  787. </table>
  788. </dd>
  789. </dl>
  790. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  791. </div>
  792. </div>
  793. <a id="a6a254df9866966f7f97478e916fe6a7f"></a>
  794. <h2 class="memtitle"><span class="permalink"><a href="#a6a254df9866966f7f97478e916fe6a7f">&#9670;&nbsp;</a></span>ls() <span class="overload">[2/2]</span></h2>
  795. <div class="memitem">
  796. <div class="memproto">
  797. <table class="mlabels">
  798. <tr>
  799. <td class="mlabels-left">
  800. <table class="memname">
  801. <tr>
  802. <td class="memname">bool FsBaseFile::ls </td>
  803. <td>(</td>
  804. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  805. <td class="paramname"><em>pr</em>, </td>
  806. </tr>
  807. <tr>
  808. <td class="paramkey"></td>
  809. <td></td>
  810. <td class="paramtype">uint8_t&#160;</td>
  811. <td class="paramname"><em>flags</em>&#160;</td>
  812. </tr>
  813. <tr>
  814. <td></td>
  815. <td>)</td>
  816. <td></td><td></td>
  817. </tr>
  818. </table>
  819. </td>
  820. <td class="mlabels-right">
  821. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  822. </tr>
  823. </table>
  824. </div><div class="memdoc">
  825. <p>List directory contents.</p>
  826. <dl class="params"><dt>Parameters</dt><dd>
  827. <table class="params">
  828. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print object. </td></tr>
  829. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  830. </table>
  831. </dd>
  832. </dl>
  833. <p>LS_DATE - Print file modification date</p>
  834. <p>LS_SIZE - Print file size.</p>
  835. <p>LS_R - Recursive list of subdirectories.</p>
  836. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  837. </div>
  838. </div>
  839. <a id="a8b7aa7f2c63882e483336dfe12ef6800"></a>
  840. <h2 class="memtitle"><span class="permalink"><a href="#a8b7aa7f2c63882e483336dfe12ef6800">&#9670;&nbsp;</a></span>mkdir()</h2>
  841. <div class="memitem">
  842. <div class="memproto">
  843. <table class="memname">
  844. <tr>
  845. <td class="memname">bool FsBaseFile::mkdir </td>
  846. <td>(</td>
  847. <td class="paramtype"><a class="el" href="class_fs_base_file.html">FsBaseFile</a> *&#160;</td>
  848. <td class="paramname"><em>dir</em>, </td>
  849. </tr>
  850. <tr>
  851. <td class="paramkey"></td>
  852. <td></td>
  853. <td class="paramtype">const char *&#160;</td>
  854. <td class="paramname"><em>path</em>, </td>
  855. </tr>
  856. <tr>
  857. <td class="paramkey"></td>
  858. <td></td>
  859. <td class="paramtype">bool&#160;</td>
  860. <td class="paramname"><em>pFlag</em> = <code>true</code>&#160;</td>
  861. </tr>
  862. <tr>
  863. <td></td>
  864. <td>)</td>
  865. <td></td><td></td>
  866. </tr>
  867. </table>
  868. </div><div class="memdoc">
  869. <p>Make a new directory.</p>
  870. <dl class="params"><dt>Parameters</dt><dd>
  871. <table class="params">
  872. <tr><td class="paramdir">[in]</td><td class="paramname">dir</td><td>An open <a class="el" href="class_fat_file.html" title="Basic file class.">FatFile</a> instance for the directory that will contain the new directory.</td></tr>
  873. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid 8.3 DOS name for the new directory.</td></tr>
  874. <tr><td class="paramdir">[in]</td><td class="paramname">pFlag</td><td>Create missing parent directories if true.</td></tr>
  875. </table>
  876. </dd>
  877. </dl>
  878. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  879. </div>
  880. </div>
  881. <a id="a6ccd545042d98841246edfbf2f482677"></a>
  882. <h2 class="memtitle"><span class="permalink"><a href="#a6ccd545042d98841246edfbf2f482677">&#9670;&nbsp;</a></span>name()</h2>
  883. <div class="memitem">
  884. <div class="memproto">
  885. <table class="mlabels">
  886. <tr>
  887. <td class="mlabels-left">
  888. <table class="memname">
  889. <tr>
  890. <td class="memname">const char* FsBaseFile::name </td>
  891. <td>(</td>
  892. <td class="paramname"></td><td>)</td>
  893. <td> const</td>
  894. </tr>
  895. </table>
  896. </td>
  897. <td class="mlabels-right">
  898. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  899. </tr>
  900. </table>
  901. </div><div class="memdoc">
  902. <p>No longer implemented due to Long File Names.</p>
  903. <p>Use <a class="el" href="class_fs_base_file.html#ad2099dbe6bb8f61e1bf933d8e97b2d86">getName(char* name, size_t size)</a>. </p><dl class="section return"><dt>Returns</dt><dd>a pointer to replacement suggestion. </dd></dl>
  904. </div>
  905. </div>
  906. <a id="af44f0decd9b11dd45996e81f46e2cdee"></a>
  907. <h2 class="memtitle"><span class="permalink"><a href="#af44f0decd9b11dd45996e81f46e2cdee">&#9670;&nbsp;</a></span>open() <span class="overload">[1/4]</span></h2>
  908. <div class="memitem">
  909. <div class="memproto">
  910. <table class="mlabels">
  911. <tr>
  912. <td class="mlabels-left">
  913. <table class="memname">
  914. <tr>
  915. <td class="memname">bool FsBaseFile::open </td>
  916. <td>(</td>
  917. <td class="paramtype">const char *&#160;</td>
  918. <td class="paramname"><em>path</em>, </td>
  919. </tr>
  920. <tr>
  921. <td class="paramkey"></td>
  922. <td></td>
  923. <td class="paramtype">oflag_t&#160;</td>
  924. <td class="paramname"><em>oflag</em> = <code>O_RDONLY</code>&#160;</td>
  925. </tr>
  926. <tr>
  927. <td></td>
  928. <td>)</td>
  929. <td></td><td></td>
  930. </tr>
  931. </table>
  932. </td>
  933. <td class="mlabels-right">
  934. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  935. </tr>
  936. </table>
  937. </div><div class="memdoc">
  938. <p>Open a file or directory by name.</p>
  939. <dl class="params"><dt>Parameters</dt><dd>
  940. <table class="params">
  941. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path for a file to be opened.</td></tr>
  942. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>Values for <em>oflag</em> are constructed by a bitwise-inclusive OR of open flags.</td></tr>
  943. </table>
  944. </dd>
  945. </dl>
  946. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  947. </div>
  948. </div>
  949. <a id="aa767859d4a4b4716ebbc4ea42a6d74df"></a>
  950. <h2 class="memtitle"><span class="permalink"><a href="#aa767859d4a4b4716ebbc4ea42a6d74df">&#9670;&nbsp;</a></span>open() <span class="overload">[2/4]</span></h2>
  951. <div class="memitem">
  952. <div class="memproto">
  953. <table class="memname">
  954. <tr>
  955. <td class="memname">bool FsBaseFile::open </td>
  956. <td>(</td>
  957. <td class="paramtype"><a class="el" href="class_fs_base_file.html">FsBaseFile</a> *&#160;</td>
  958. <td class="paramname"><em>dir</em>, </td>
  959. </tr>
  960. <tr>
  961. <td class="paramkey"></td>
  962. <td></td>
  963. <td class="paramtype">const char *&#160;</td>
  964. <td class="paramname"><em>path</em>, </td>
  965. </tr>
  966. <tr>
  967. <td class="paramkey"></td>
  968. <td></td>
  969. <td class="paramtype">oflag_t&#160;</td>
  970. <td class="paramname"><em>oflag</em> = <code>O_RDONLY</code>&#160;</td>
  971. </tr>
  972. <tr>
  973. <td></td>
  974. <td>)</td>
  975. <td></td><td></td>
  976. </tr>
  977. </table>
  978. </div><div class="memdoc">
  979. <p>Open a file or directory by name.</p>
  980. <dl class="params"><dt>Parameters</dt><dd>
  981. <table class="params">
  982. <tr><td class="paramdir">[in]</td><td class="paramname">dir</td><td>An open file instance for the directory containing the file to be opened.</td></tr>
  983. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid 8.3 DOS name for a file to be opened.</td></tr>
  984. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>Values for <em>oflag</em> are constructed by a bitwise-inclusive OR of flags from the following list</td></tr>
  985. </table>
  986. </dd>
  987. </dl>
  988. <p>O_RDONLY - Open for reading only..</p>
  989. <p>O_READ - Same as O_RDONLY.</p>
  990. <p>O_WRONLY - Open for writing only.</p>
  991. <p>O_WRITE - Same as O_WRONLY.</p>
  992. <p>O_RDWR - Open for reading and writing.</p>
  993. <p>O_APPEND - If set, the file offset shall be set to the end of the file prior to each write.</p>
  994. <p>O_AT_END - Set the initial position at the end of the file.</p>
  995. <p>O_CREAT - If the file exists, this flag has no effect except as noted under O_EXCL below. Otherwise, the file shall be created</p>
  996. <p>O_EXCL - If O_CREAT and O_EXCL are set, <a class="el" href="class_fs_base_file.html#aa767859d4a4b4716ebbc4ea42a6d74df">open()</a> shall fail if the file exists.</p>
  997. <p>O_TRUNC - If the file exists and is a regular file, and the file is successfully opened and is not read only, its length shall be truncated to 0.</p>
  998. <p>WARNING: A given file must not be opened by more than one file object or file corruption may occur.</p>
  999. <dl class="section note"><dt>Note</dt><dd>Directory files must be opened read only. Write and truncation is not allowed for directory files.</dd></dl>
  1000. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1001. </div>
  1002. </div>
  1003. <a id="ac4edea1afb935119ecaf39607016c3cc"></a>
  1004. <h2 class="memtitle"><span class="permalink"><a href="#ac4edea1afb935119ecaf39607016c3cc">&#9670;&nbsp;</a></span>open() <span class="overload">[3/4]</span></h2>
  1005. <div class="memitem">
  1006. <div class="memproto">
  1007. <table class="memname">
  1008. <tr>
  1009. <td class="memname">bool FsBaseFile::open </td>
  1010. <td>(</td>
  1011. <td class="paramtype"><a class="el" href="class_fs_base_file.html">FsBaseFile</a> *&#160;</td>
  1012. <td class="paramname"><em>dir</em>, </td>
  1013. </tr>
  1014. <tr>
  1015. <td class="paramkey"></td>
  1016. <td></td>
  1017. <td class="paramtype">uint32_t&#160;</td>
  1018. <td class="paramname"><em>index</em>, </td>
  1019. </tr>
  1020. <tr>
  1021. <td class="paramkey"></td>
  1022. <td></td>
  1023. <td class="paramtype">oflag_t&#160;</td>
  1024. <td class="paramname"><em>oflag</em>&#160;</td>
  1025. </tr>
  1026. <tr>
  1027. <td></td>
  1028. <td>)</td>
  1029. <td></td><td></td>
  1030. </tr>
  1031. </table>
  1032. </div><div class="memdoc">
  1033. <p>Open a file by index.</p>
  1034. <dl class="params"><dt>Parameters</dt><dd>
  1035. <table class="params">
  1036. <tr><td class="paramdir">[in]</td><td class="paramname">dir</td><td>An open <a class="el" href="class_fs_file.html" title="FsBaseFile file with Arduino Stream.">FsFile</a> instance for the directory.</td></tr>
  1037. <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>The <em>index</em> of the directory entry for the file to be opened. The value for <em>index</em> is (directory file position)/32.</td></tr>
  1038. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open flags. See see FsFile::open(FsFile*, const char*, uint8_t).</td></tr>
  1039. </table>
  1040. </dd>
  1041. </dl>
  1042. <p>See <a class="el" href="class_fs_base_file.html#aa767859d4a4b4716ebbc4ea42a6d74df">open()</a> by path for definition of flags. </p><dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1043. </div>
  1044. </div>
  1045. <a id="a9786eb47f5d001e89ff291c271517547"></a>
  1046. <h2 class="memtitle"><span class="permalink"><a href="#a9786eb47f5d001e89ff291c271517547">&#9670;&nbsp;</a></span>open() <span class="overload">[4/4]</span></h2>
  1047. <div class="memitem">
  1048. <div class="memproto">
  1049. <table class="memname">
  1050. <tr>
  1051. <td class="memname">bool FsBaseFile::open </td>
  1052. <td>(</td>
  1053. <td class="paramtype"><a class="el" href="class_fs_volume.html">FsVolume</a> *&#160;</td>
  1054. <td class="paramname"><em>vol</em>, </td>
  1055. </tr>
  1056. <tr>
  1057. <td class="paramkey"></td>
  1058. <td></td>
  1059. <td class="paramtype">const char *&#160;</td>
  1060. <td class="paramname"><em>path</em>, </td>
  1061. </tr>
  1062. <tr>
  1063. <td class="paramkey"></td>
  1064. <td></td>
  1065. <td class="paramtype">oflag_t&#160;</td>
  1066. <td class="paramname"><em>oflag</em>&#160;</td>
  1067. </tr>
  1068. <tr>
  1069. <td></td>
  1070. <td>)</td>
  1071. <td></td><td></td>
  1072. </tr>
  1073. </table>
  1074. </div><div class="memdoc">
  1075. <p>Open a file or directory by name.</p>
  1076. <dl class="params"><dt>Parameters</dt><dd>
  1077. <table class="params">
  1078. <tr><td class="paramdir">[in]</td><td class="paramname">vol</td><td>Volume where the file is located.</td></tr>
  1079. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path for a file to be opened.</td></tr>
  1080. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>Values for <em>oflag</em> are constructed by a bitwise-inclusive OR of open flags.</td></tr>
  1081. </table>
  1082. </dd>
  1083. </dl>
  1084. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1085. </div>
  1086. </div>
  1087. <a id="acb9b1075f4db76fa7e0521c9aff9c3df"></a>
  1088. <h2 class="memtitle"><span class="permalink"><a href="#acb9b1075f4db76fa7e0521c9aff9c3df">&#9670;&nbsp;</a></span>openNext()</h2>
  1089. <div class="memitem">
  1090. <div class="memproto">
  1091. <table class="memname">
  1092. <tr>
  1093. <td class="memname">bool FsBaseFile::openNext </td>
  1094. <td>(</td>
  1095. <td class="paramtype"><a class="el" href="class_fs_base_file.html">FsBaseFile</a> *&#160;</td>
  1096. <td class="paramname"><em>dir</em>, </td>
  1097. </tr>
  1098. <tr>
  1099. <td class="paramkey"></td>
  1100. <td></td>
  1101. <td class="paramtype">oflag_t&#160;</td>
  1102. <td class="paramname"><em>oflag</em> = <code>O_RDONLY</code>&#160;</td>
  1103. </tr>
  1104. <tr>
  1105. <td></td>
  1106. <td>)</td>
  1107. <td></td><td></td>
  1108. </tr>
  1109. </table>
  1110. </div><div class="memdoc">
  1111. <p>Opens the next file or folder in a directory. </p><dl class="params"><dt>Parameters</dt><dd>
  1112. <table class="params">
  1113. <tr><td class="paramdir">[in]</td><td class="paramname">dir</td><td>directory containing files. </td></tr>
  1114. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>open flags. </td></tr>
  1115. </table>
  1116. </dd>
  1117. </dl>
  1118. <dl class="section return"><dt>Returns</dt><dd>a file object. </dd></dl>
  1119. </div>
  1120. </div>
  1121. <a id="a3ad633f3efc2701a3a89e776436b14e1"></a>
  1122. <h2 class="memtitle"><span class="permalink"><a href="#a3ad633f3efc2701a3a89e776436b14e1">&#9670;&nbsp;</a></span>operator bool()</h2>
  1123. <div class="memitem">
  1124. <div class="memproto">
  1125. <table class="mlabels">
  1126. <tr>
  1127. <td class="mlabels-left">
  1128. <table class="memname">
  1129. <tr>
  1130. <td class="memname">FsBaseFile::operator bool </td>
  1131. <td>(</td>
  1132. <td class="paramname"></td><td>)</td>
  1133. <td></td>
  1134. </tr>
  1135. </table>
  1136. </td>
  1137. <td class="mlabels-right">
  1138. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1139. </tr>
  1140. </table>
  1141. </div><div class="memdoc">
  1142. <p>The parenthesis operator.</p>
  1143. <dl class="section return"><dt>Returns</dt><dd>true if a file is open. </dd></dl>
  1144. </div>
  1145. </div>
  1146. <a id="ae4f6d168072bb4f2a61976f621659d20"></a>
  1147. <h2 class="memtitle"><span class="permalink"><a href="#ae4f6d168072bb4f2a61976f621659d20">&#9670;&nbsp;</a></span>operator=()</h2>
  1148. <div class="memitem">
  1149. <div class="memproto">
  1150. <table class="memname">
  1151. <tr>
  1152. <td class="memname"><a class="el" href="class_fs_base_file.html">FsBaseFile</a> &amp; FsBaseFile::operator= </td>
  1153. <td>(</td>
  1154. <td class="paramtype">const <a class="el" href="class_fs_base_file.html">FsBaseFile</a> &amp;&#160;</td>
  1155. <td class="paramname"><em>from</em></td><td>)</td>
  1156. <td></td>
  1157. </tr>
  1158. </table>
  1159. </div><div class="memdoc">
  1160. <p>Copy assignment operator </p><dl class="params"><dt>Parameters</dt><dd>
  1161. <table class="params">
  1162. <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>Object used to initialize this instance. </td></tr>
  1163. </table>
  1164. </dd>
  1165. </dl>
  1166. <dl class="section return"><dt>Returns</dt><dd>assigned object. </dd></dl>
  1167. </div>
  1168. </div>
  1169. <a id="adc49cb204f293a28b67af64c49c4c9f3"></a>
  1170. <h2 class="memtitle"><span class="permalink"><a href="#adc49cb204f293a28b67af64c49c4c9f3">&#9670;&nbsp;</a></span>peek()</h2>
  1171. <div class="memitem">
  1172. <div class="memproto">
  1173. <table class="mlabels">
  1174. <tr>
  1175. <td class="mlabels-left">
  1176. <table class="memname">
  1177. <tr>
  1178. <td class="memname">int FsBaseFile::peek </td>
  1179. <td>(</td>
  1180. <td class="paramname"></td><td>)</td>
  1181. <td></td>
  1182. </tr>
  1183. </table>
  1184. </td>
  1185. <td class="mlabels-right">
  1186. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1187. </tr>
  1188. </table>
  1189. </div><div class="memdoc">
  1190. <p>Return the next available byte without consuming it.</p>
  1191. <dl class="section return"><dt>Returns</dt><dd>The byte if no error and not at eof else -1; </dd></dl>
  1192. </div>
  1193. </div>
  1194. <a id="a8d5ea7284de7ec0bfdb0b2294001f015"></a>
  1195. <h2 class="memtitle"><span class="permalink"><a href="#a8d5ea7284de7ec0bfdb0b2294001f015">&#9670;&nbsp;</a></span>position()</h2>
  1196. <div class="memitem">
  1197. <div class="memproto">
  1198. <table class="mlabels">
  1199. <tr>
  1200. <td class="mlabels-left">
  1201. <table class="memname">
  1202. <tr>
  1203. <td class="memname">uint64_t FsBaseFile::position </td>
  1204. <td>(</td>
  1205. <td class="paramname"></td><td>)</td>
  1206. <td></td>
  1207. </tr>
  1208. </table>
  1209. </td>
  1210. <td class="mlabels-right">
  1211. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1212. </tr>
  1213. </table>
  1214. </div><div class="memdoc">
  1215. <dl class="section return"><dt>Returns</dt><dd>the current file position. </dd></dl>
  1216. </div>
  1217. </div>
  1218. <a id="acbc037f9f07c57235bb8b30af5a53ac2"></a>
  1219. <h2 class="memtitle"><span class="permalink"><a href="#acbc037f9f07c57235bb8b30af5a53ac2">&#9670;&nbsp;</a></span>preAllocate()</h2>
  1220. <div class="memitem">
  1221. <div class="memproto">
  1222. <table class="mlabels">
  1223. <tr>
  1224. <td class="mlabels-left">
  1225. <table class="memname">
  1226. <tr>
  1227. <td class="memname">bool FsBaseFile::preAllocate </td>
  1228. <td>(</td>
  1229. <td class="paramtype">uint64_t&#160;</td>
  1230. <td class="paramname"><em>length</em></td><td>)</td>
  1231. <td></td>
  1232. </tr>
  1233. </table>
  1234. </td>
  1235. <td class="mlabels-right">
  1236. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1237. </tr>
  1238. </table>
  1239. </div><div class="memdoc">
  1240. <p>Allocate contiguous clusters to an empty file.</p>
  1241. <p>The file must be empty with no clusters allocated.</p>
  1242. <p>The file will contain uninitialized data for FAT16/FAT32 files. exFAT files will have zero validLength and dataLength will equal the requested length.</p>
  1243. <dl class="params"><dt>Parameters</dt><dd>
  1244. <table class="params">
  1245. <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>size of the file in bytes. </td></tr>
  1246. </table>
  1247. </dd>
  1248. </dl>
  1249. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1250. </div>
  1251. </div>
  1252. <a id="a264ba61530aee50dbe9659d41dd2c1d6"></a>
  1253. <h2 class="memtitle"><span class="permalink"><a href="#a264ba61530aee50dbe9659d41dd2c1d6">&#9670;&nbsp;</a></span>printAccessDateTime()</h2>
  1254. <div class="memitem">
  1255. <div class="memproto">
  1256. <table class="mlabels">
  1257. <tr>
  1258. <td class="mlabels-left">
  1259. <table class="memname">
  1260. <tr>
  1261. <td class="memname">size_t FsBaseFile::printAccessDateTime </td>
  1262. <td>(</td>
  1263. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  1264. <td class="paramname"><em>pr</em></td><td>)</td>
  1265. <td></td>
  1266. </tr>
  1267. </table>
  1268. </td>
  1269. <td class="mlabels-right">
  1270. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1271. </tr>
  1272. </table>
  1273. </div><div class="memdoc">
  1274. <p>Print a file's access date and time</p>
  1275. <dl class="params"><dt>Parameters</dt><dd>
  1276. <table class="params">
  1277. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1278. </table>
  1279. </dd>
  1280. </dl>
  1281. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1282. </div>
  1283. </div>
  1284. <a id="a3f75ac7eb6643afcabae28e8c93479c8"></a>
  1285. <h2 class="memtitle"><span class="permalink"><a href="#a3f75ac7eb6643afcabae28e8c93479c8">&#9670;&nbsp;</a></span>printCreateDateTime()</h2>
  1286. <div class="memitem">
  1287. <div class="memproto">
  1288. <table class="mlabels">
  1289. <tr>
  1290. <td class="mlabels-left">
  1291. <table class="memname">
  1292. <tr>
  1293. <td class="memname">size_t FsBaseFile::printCreateDateTime </td>
  1294. <td>(</td>
  1295. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  1296. <td class="paramname"><em>pr</em></td><td>)</td>
  1297. <td></td>
  1298. </tr>
  1299. </table>
  1300. </td>
  1301. <td class="mlabels-right">
  1302. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1303. </tr>
  1304. </table>
  1305. </div><div class="memdoc">
  1306. <p>Print a file's creation date and time</p>
  1307. <dl class="params"><dt>Parameters</dt><dd>
  1308. <table class="params">
  1309. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1310. </table>
  1311. </dd>
  1312. </dl>
  1313. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1314. </div>
  1315. </div>
  1316. <a id="a911ae825e67d7e6ade4a672595e060d6"></a>
  1317. <h2 class="memtitle"><span class="permalink"><a href="#a911ae825e67d7e6ade4a672595e060d6">&#9670;&nbsp;</a></span>printField() <span class="overload">[1/3]</span></h2>
  1318. <div class="memitem">
  1319. <div class="memproto">
  1320. <table class="mlabels">
  1321. <tr>
  1322. <td class="mlabels-left">
  1323. <table class="memname">
  1324. <tr>
  1325. <td class="memname">size_t FsBaseFile::printField </td>
  1326. <td>(</td>
  1327. <td class="paramtype">double&#160;</td>
  1328. <td class="paramname"><em>value</em>, </td>
  1329. </tr>
  1330. <tr>
  1331. <td class="paramkey"></td>
  1332. <td></td>
  1333. <td class="paramtype">char&#160;</td>
  1334. <td class="paramname"><em>term</em>, </td>
  1335. </tr>
  1336. <tr>
  1337. <td class="paramkey"></td>
  1338. <td></td>
  1339. <td class="paramtype">uint8_t&#160;</td>
  1340. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1341. </tr>
  1342. <tr>
  1343. <td></td>
  1344. <td>)</td>
  1345. <td></td><td></td>
  1346. </tr>
  1347. </table>
  1348. </td>
  1349. <td class="mlabels-right">
  1350. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1351. </tr>
  1352. </table>
  1353. </div><div class="memdoc">
  1354. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  1355. <table class="params">
  1356. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1357. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  1358. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1359. </table>
  1360. </dd>
  1361. </dl>
  1362. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1363. </div>
  1364. </div>
  1365. <a id="a5dd2738efe2e550f56037536bc252f13"></a>
  1366. <h2 class="memtitle"><span class="permalink"><a href="#a5dd2738efe2e550f56037536bc252f13">&#9670;&nbsp;</a></span>printField() <span class="overload">[2/3]</span></h2>
  1367. <div class="memitem">
  1368. <div class="memproto">
  1369. <table class="mlabels">
  1370. <tr>
  1371. <td class="mlabels-left">
  1372. <table class="memname">
  1373. <tr>
  1374. <td class="memname">size_t FsBaseFile::printField </td>
  1375. <td>(</td>
  1376. <td class="paramtype">float&#160;</td>
  1377. <td class="paramname"><em>value</em>, </td>
  1378. </tr>
  1379. <tr>
  1380. <td class="paramkey"></td>
  1381. <td></td>
  1382. <td class="paramtype">char&#160;</td>
  1383. <td class="paramname"><em>term</em>, </td>
  1384. </tr>
  1385. <tr>
  1386. <td class="paramkey"></td>
  1387. <td></td>
  1388. <td class="paramtype">uint8_t&#160;</td>
  1389. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1390. </tr>
  1391. <tr>
  1392. <td></td>
  1393. <td>)</td>
  1394. <td></td><td></td>
  1395. </tr>
  1396. </table>
  1397. </td>
  1398. <td class="mlabels-right">
  1399. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1400. </tr>
  1401. </table>
  1402. </div><div class="memdoc">
  1403. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  1404. <table class="params">
  1405. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1406. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  1407. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1408. </table>
  1409. </dd>
  1410. </dl>
  1411. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1412. </div>
  1413. </div>
  1414. <a id="a45639312b8c5aa9ceddb19e654e902b4"></a>
  1415. <h2 class="memtitle"><span class="permalink"><a href="#a45639312b8c5aa9ceddb19e654e902b4">&#9670;&nbsp;</a></span>printField() <span class="overload">[3/3]</span></h2>
  1416. <div class="memitem">
  1417. <div class="memproto">
  1418. <div class="memtemplate">
  1419. template&lt;typename Type &gt; </div>
  1420. <table class="mlabels">
  1421. <tr>
  1422. <td class="mlabels-left">
  1423. <table class="memname">
  1424. <tr>
  1425. <td class="memname">size_t FsBaseFile::printField </td>
  1426. <td>(</td>
  1427. <td class="paramtype">Type&#160;</td>
  1428. <td class="paramname"><em>value</em>, </td>
  1429. </tr>
  1430. <tr>
  1431. <td class="paramkey"></td>
  1432. <td></td>
  1433. <td class="paramtype">char&#160;</td>
  1434. <td class="paramname"><em>term</em>&#160;</td>
  1435. </tr>
  1436. <tr>
  1437. <td></td>
  1438. <td>)</td>
  1439. <td></td><td></td>
  1440. </tr>
  1441. </table>
  1442. </td>
  1443. <td class="mlabels-right">
  1444. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1445. </tr>
  1446. </table>
  1447. </div><div class="memdoc">
  1448. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  1449. <table class="params">
  1450. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1451. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  1452. </table>
  1453. </dd>
  1454. </dl>
  1455. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1456. </div>
  1457. </div>
  1458. <a id="a6760471e3c445f66b94f3f0e96fdfe10"></a>
  1459. <h2 class="memtitle"><span class="permalink"><a href="#a6760471e3c445f66b94f3f0e96fdfe10">&#9670;&nbsp;</a></span>printFileSize()</h2>
  1460. <div class="memitem">
  1461. <div class="memproto">
  1462. <table class="mlabels">
  1463. <tr>
  1464. <td class="mlabels-left">
  1465. <table class="memname">
  1466. <tr>
  1467. <td class="memname">size_t FsBaseFile::printFileSize </td>
  1468. <td>(</td>
  1469. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  1470. <td class="paramname"><em>pr</em></td><td>)</td>
  1471. <td></td>
  1472. </tr>
  1473. </table>
  1474. </td>
  1475. <td class="mlabels-right">
  1476. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1477. </tr>
  1478. </table>
  1479. </div><div class="memdoc">
  1480. <p>Print a file's size.</p>
  1481. <dl class="params"><dt>Parameters</dt><dd>
  1482. <table class="params">
  1483. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1484. </table>
  1485. </dd>
  1486. </dl>
  1487. <dl class="section return"><dt>Returns</dt><dd>The number of characters printed is returned for success and zero is returned for failure. </dd></dl>
  1488. </div>
  1489. </div>
  1490. <a id="a0f2f813496fa156f9808a5d33c2d8746"></a>
  1491. <h2 class="memtitle"><span class="permalink"><a href="#a0f2f813496fa156f9808a5d33c2d8746">&#9670;&nbsp;</a></span>printModifyDateTime()</h2>
  1492. <div class="memitem">
  1493. <div class="memproto">
  1494. <table class="mlabels">
  1495. <tr>
  1496. <td class="mlabels-left">
  1497. <table class="memname">
  1498. <tr>
  1499. <td class="memname">size_t FsBaseFile::printModifyDateTime </td>
  1500. <td>(</td>
  1501. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  1502. <td class="paramname"><em>pr</em></td><td>)</td>
  1503. <td></td>
  1504. </tr>
  1505. </table>
  1506. </td>
  1507. <td class="mlabels-right">
  1508. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1509. </tr>
  1510. </table>
  1511. </div><div class="memdoc">
  1512. <p>Print a file's modify date and time</p>
  1513. <dl class="params"><dt>Parameters</dt><dd>
  1514. <table class="params">
  1515. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1516. </table>
  1517. </dd>
  1518. </dl>
  1519. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1520. </div>
  1521. </div>
  1522. <a id="a178a1cbe2bce19758a55bd00fa262732"></a>
  1523. <h2 class="memtitle"><span class="permalink"><a href="#a178a1cbe2bce19758a55bd00fa262732">&#9670;&nbsp;</a></span>printName()</h2>
  1524. <div class="memitem">
  1525. <div class="memproto">
  1526. <table class="mlabels">
  1527. <tr>
  1528. <td class="mlabels-left">
  1529. <table class="memname">
  1530. <tr>
  1531. <td class="memname">size_t FsBaseFile::printName </td>
  1532. <td>(</td>
  1533. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  1534. <td class="paramname"><em>pr</em></td><td>)</td>
  1535. <td></td>
  1536. </tr>
  1537. </table>
  1538. </td>
  1539. <td class="mlabels-right">
  1540. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1541. </tr>
  1542. </table>
  1543. </div><div class="memdoc">
  1544. <p>Print a file's name</p>
  1545. <dl class="params"><dt>Parameters</dt><dd>
  1546. <table class="params">
  1547. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1548. </table>
  1549. </dd>
  1550. </dl>
  1551. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1552. </div>
  1553. </div>
  1554. <a id="acbe2d203d212a50871db77a9b2ba01f6"></a>
  1555. <h2 class="memtitle"><span class="permalink"><a href="#acbe2d203d212a50871db77a9b2ba01f6">&#9670;&nbsp;</a></span>read() <span class="overload">[1/2]</span></h2>
  1556. <div class="memitem">
  1557. <div class="memproto">
  1558. <table class="mlabels">
  1559. <tr>
  1560. <td class="mlabels-left">
  1561. <table class="memname">
  1562. <tr>
  1563. <td class="memname">int FsBaseFile::read </td>
  1564. <td>(</td>
  1565. <td class="paramname"></td><td>)</td>
  1566. <td></td>
  1567. </tr>
  1568. </table>
  1569. </td>
  1570. <td class="mlabels-right">
  1571. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1572. </tr>
  1573. </table>
  1574. </div><div class="memdoc">
  1575. <p>Read the next byte from a file.</p>
  1576. <dl class="section return"><dt>Returns</dt><dd>For success return the next byte in the file as an int. If an error occurs or end of file is reached return -1. </dd></dl>
  1577. </div>
  1578. </div>
  1579. <a id="ae8d8cb4cceda9d56e8dae692d04a46e6"></a>
  1580. <h2 class="memtitle"><span class="permalink"><a href="#ae8d8cb4cceda9d56e8dae692d04a46e6">&#9670;&nbsp;</a></span>read() <span class="overload">[2/2]</span></h2>
  1581. <div class="memitem">
  1582. <div class="memproto">
  1583. <table class="mlabels">
  1584. <tr>
  1585. <td class="mlabels-left">
  1586. <table class="memname">
  1587. <tr>
  1588. <td class="memname">int FsBaseFile::read </td>
  1589. <td>(</td>
  1590. <td class="paramtype">void *&#160;</td>
  1591. <td class="paramname"><em>buf</em>, </td>
  1592. </tr>
  1593. <tr>
  1594. <td class="paramkey"></td>
  1595. <td></td>
  1596. <td class="paramtype">size_t&#160;</td>
  1597. <td class="paramname"><em>count</em>&#160;</td>
  1598. </tr>
  1599. <tr>
  1600. <td></td>
  1601. <td>)</td>
  1602. <td></td><td></td>
  1603. </tr>
  1604. </table>
  1605. </td>
  1606. <td class="mlabels-right">
  1607. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1608. </tr>
  1609. </table>
  1610. </div><div class="memdoc">
  1611. <p>Read data from a file starting at the current position.</p>
  1612. <dl class="params"><dt>Parameters</dt><dd>
  1613. <table class="params">
  1614. <tr><td class="paramdir">[out]</td><td class="paramname">buf</td><td>Pointer to the location that will receive the data.</td></tr>
  1615. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>Maximum number of bytes to read.</td></tr>
  1616. </table>
  1617. </dd>
  1618. </dl>
  1619. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_fs_base_file.html#acbe2d203d212a50871db77a9b2ba01f6">read()</a> returns the number of bytes read. A value less than <em>count</em>, including zero, will be returned if end of file is reached. If an error occurs, <a class="el" href="class_fs_base_file.html#acbe2d203d212a50871db77a9b2ba01f6">read()</a> returns -1. Possible errors include <a class="el" href="class_fs_base_file.html#acbe2d203d212a50871db77a9b2ba01f6">read()</a> called before a file has been opened, corrupt file system or an I/O error occurred. </dd></dl>
  1620. </div>
  1621. </div>
  1622. <a id="a8d21f9df86e846e34c3bb11cf7db21bc"></a>
  1623. <h2 class="memtitle"><span class="permalink"><a href="#a8d21f9df86e846e34c3bb11cf7db21bc">&#9670;&nbsp;</a></span>remove() <span class="overload">[1/2]</span></h2>
  1624. <div class="memitem">
  1625. <div class="memproto">
  1626. <table class="memname">
  1627. <tr>
  1628. <td class="memname">bool FsBaseFile::remove </td>
  1629. <td>(</td>
  1630. <td class="paramname"></td><td>)</td>
  1631. <td></td>
  1632. </tr>
  1633. </table>
  1634. </div><div class="memdoc">
  1635. <p>Remove a file.</p>
  1636. <p>The directory entry and all data for the file are deleted.</p>
  1637. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a file that has a long name. For example if a file has the long name "New Text Document.txt" you should not delete the 8.3 name "NEWTEX~1.TXT".</dd></dl>
  1638. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1639. </div>
  1640. </div>
  1641. <a id="a64feff69c4f09e56247c7f9dc7c74f34"></a>
  1642. <h2 class="memtitle"><span class="permalink"><a href="#a64feff69c4f09e56247c7f9dc7c74f34">&#9670;&nbsp;</a></span>remove() <span class="overload">[2/2]</span></h2>
  1643. <div class="memitem">
  1644. <div class="memproto">
  1645. <table class="mlabels">
  1646. <tr>
  1647. <td class="mlabels-left">
  1648. <table class="memname">
  1649. <tr>
  1650. <td class="memname">bool FsBaseFile::remove </td>
  1651. <td>(</td>
  1652. <td class="paramtype">const char *&#160;</td>
  1653. <td class="paramname"><em>path</em></td><td>)</td>
  1654. <td></td>
  1655. </tr>
  1656. </table>
  1657. </td>
  1658. <td class="mlabels-right">
  1659. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1660. </tr>
  1661. </table>
  1662. </div><div class="memdoc">
  1663. <p>Remove a file.</p>
  1664. <p>The directory entry and all data for the file are deleted.</p>
  1665. <dl class="params"><dt>Parameters</dt><dd>
  1666. <table class="params">
  1667. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>Path for the file to be removed.</td></tr>
  1668. </table>
  1669. </dd>
  1670. </dl>
  1671. <p>Example use: dirFile.remove(filenameToRemove);</p>
  1672. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a file that has a long name. For example if a file has the long name "New Text Document.txt" you should not delete the 8.3 name "NEWTEX~1.TXT".</dd></dl>
  1673. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1674. </div>
  1675. </div>
  1676. <a id="af532d87177e86995a053503eb9152115"></a>
  1677. <h2 class="memtitle"><span class="permalink"><a href="#af532d87177e86995a053503eb9152115">&#9670;&nbsp;</a></span>rename() <span class="overload">[1/2]</span></h2>
  1678. <div class="memitem">
  1679. <div class="memproto">
  1680. <table class="mlabels">
  1681. <tr>
  1682. <td class="mlabels-left">
  1683. <table class="memname">
  1684. <tr>
  1685. <td class="memname">bool FsBaseFile::rename </td>
  1686. <td>(</td>
  1687. <td class="paramtype">const char *&#160;</td>
  1688. <td class="paramname"><em>newPath</em></td><td>)</td>
  1689. <td></td>
  1690. </tr>
  1691. </table>
  1692. </td>
  1693. <td class="mlabels-right">
  1694. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1695. </tr>
  1696. </table>
  1697. </div><div class="memdoc">
  1698. <p>Rename a file or subdirectory.</p>
  1699. <dl class="params"><dt>Parameters</dt><dd>
  1700. <table class="params">
  1701. <tr><td class="paramdir">[in]</td><td class="paramname">newPath</td><td>New path name for the file/directory.</td></tr>
  1702. </table>
  1703. </dd>
  1704. </dl>
  1705. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1706. </div>
  1707. </div>
  1708. <a id="a4e4347f6e89bf0b487824dbdc5b82068"></a>
  1709. <h2 class="memtitle"><span class="permalink"><a href="#a4e4347f6e89bf0b487824dbdc5b82068">&#9670;&nbsp;</a></span>rename() <span class="overload">[2/2]</span></h2>
  1710. <div class="memitem">
  1711. <div class="memproto">
  1712. <table class="mlabels">
  1713. <tr>
  1714. <td class="mlabels-left">
  1715. <table class="memname">
  1716. <tr>
  1717. <td class="memname">bool FsBaseFile::rename </td>
  1718. <td>(</td>
  1719. <td class="paramtype"><a class="el" href="class_fs_base_file.html">FsBaseFile</a> *&#160;</td>
  1720. <td class="paramname"><em>dirFile</em>, </td>
  1721. </tr>
  1722. <tr>
  1723. <td class="paramkey"></td>
  1724. <td></td>
  1725. <td class="paramtype">const char *&#160;</td>
  1726. <td class="paramname"><em>newPath</em>&#160;</td>
  1727. </tr>
  1728. <tr>
  1729. <td></td>
  1730. <td>)</td>
  1731. <td></td><td></td>
  1732. </tr>
  1733. </table>
  1734. </td>
  1735. <td class="mlabels-right">
  1736. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1737. </tr>
  1738. </table>
  1739. </div><div class="memdoc">
  1740. <p>Rename a file or subdirectory.</p>
  1741. <dl class="params"><dt>Parameters</dt><dd>
  1742. <table class="params">
  1743. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>Directory for the new path. </td></tr>
  1744. <tr><td class="paramdir">[in]</td><td class="paramname">newPath</td><td>New path name for the file/directory.</td></tr>
  1745. </table>
  1746. </dd>
  1747. </dl>
  1748. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1749. </div>
  1750. </div>
  1751. <a id="a22f8ef845d610493ebe314e19ddda561"></a>
  1752. <h2 class="memtitle"><span class="permalink"><a href="#a22f8ef845d610493ebe314e19ddda561">&#9670;&nbsp;</a></span>rewind()</h2>
  1753. <div class="memitem">
  1754. <div class="memproto">
  1755. <table class="mlabels">
  1756. <tr>
  1757. <td class="mlabels-left">
  1758. <table class="memname">
  1759. <tr>
  1760. <td class="memname">void FsBaseFile::rewind </td>
  1761. <td>(</td>
  1762. <td class="paramname"></td><td>)</td>
  1763. <td></td>
  1764. </tr>
  1765. </table>
  1766. </td>
  1767. <td class="mlabels-right">
  1768. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1769. </tr>
  1770. </table>
  1771. </div><div class="memdoc">
  1772. <p>Set the file's current position to zero. </p>
  1773. </div>
  1774. </div>
  1775. <a id="a56bfeb031562a6fb30e057670e6b326d"></a>
  1776. <h2 class="memtitle"><span class="permalink"><a href="#a56bfeb031562a6fb30e057670e6b326d">&#9670;&nbsp;</a></span>rewindDirectory()</h2>
  1777. <div class="memitem">
  1778. <div class="memproto">
  1779. <table class="mlabels">
  1780. <tr>
  1781. <td class="mlabels-left">
  1782. <table class="memname">
  1783. <tr>
  1784. <td class="memname">void FsBaseFile::rewindDirectory </td>
  1785. <td>(</td>
  1786. <td class="paramname"></td><td>)</td>
  1787. <td></td>
  1788. </tr>
  1789. </table>
  1790. </td>
  1791. <td class="mlabels-right">
  1792. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1793. </tr>
  1794. </table>
  1795. </div><div class="memdoc">
  1796. <p>Rewind a file if it is a directory </p>
  1797. </div>
  1798. </div>
  1799. <a id="ac47870fd89b0849cda33f2780918a286"></a>
  1800. <h2 class="memtitle"><span class="permalink"><a href="#ac47870fd89b0849cda33f2780918a286">&#9670;&nbsp;</a></span>rmdir()</h2>
  1801. <div class="memitem">
  1802. <div class="memproto">
  1803. <table class="memname">
  1804. <tr>
  1805. <td class="memname">bool FsBaseFile::rmdir </td>
  1806. <td>(</td>
  1807. <td class="paramname"></td><td>)</td>
  1808. <td></td>
  1809. </tr>
  1810. </table>
  1811. </div><div class="memdoc">
  1812. <p>Remove a directory file.</p>
  1813. <p>The directory file will be removed only if it is empty and is not the root directory. <a class="el" href="class_fs_base_file.html#ac47870fd89b0849cda33f2780918a286">rmdir()</a> follows DOS and Windows and ignores the read-only attribute for the directory.</p>
  1814. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a directory that has a long name. For example if a directory has the long name "New folder" you should not delete the 8.3 name "NEWFOL~1".</dd></dl>
  1815. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1816. </div>
  1817. </div>
  1818. <a id="ae86486f4e20f4924797124f9c6042bfd"></a>
  1819. <h2 class="memtitle"><span class="permalink"><a href="#ae86486f4e20f4924797124f9c6042bfd">&#9670;&nbsp;</a></span>seek()</h2>
  1820. <div class="memitem">
  1821. <div class="memproto">
  1822. <table class="mlabels">
  1823. <tr>
  1824. <td class="mlabels-left">
  1825. <table class="memname">
  1826. <tr>
  1827. <td class="memname">bool FsBaseFile::seek </td>
  1828. <td>(</td>
  1829. <td class="paramtype">uint64_t&#160;</td>
  1830. <td class="paramname"><em>pos</em></td><td>)</td>
  1831. <td></td>
  1832. </tr>
  1833. </table>
  1834. </td>
  1835. <td class="mlabels-right">
  1836. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1837. </tr>
  1838. </table>
  1839. </div><div class="memdoc">
  1840. <p>Seek to a new position in the file, which must be between 0 and the size of the file (inclusive).</p>
  1841. <dl class="params"><dt>Parameters</dt><dd>
  1842. <table class="params">
  1843. <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>the new file position. </td></tr>
  1844. </table>
  1845. </dd>
  1846. </dl>
  1847. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1848. </div>
  1849. </div>
  1850. <a id="a5fa242a4598eab5caa6efd4bdf62f5c0"></a>
  1851. <h2 class="memtitle"><span class="permalink"><a href="#a5fa242a4598eab5caa6efd4bdf62f5c0">&#9670;&nbsp;</a></span>seekCur()</h2>
  1852. <div class="memitem">
  1853. <div class="memproto">
  1854. <table class="mlabels">
  1855. <tr>
  1856. <td class="mlabels-left">
  1857. <table class="memname">
  1858. <tr>
  1859. <td class="memname">bool FsBaseFile::seekCur </td>
  1860. <td>(</td>
  1861. <td class="paramtype">int64_t&#160;</td>
  1862. <td class="paramname"><em>offset</em></td><td>)</td>
  1863. <td></td>
  1864. </tr>
  1865. </table>
  1866. </td>
  1867. <td class="mlabels-right">
  1868. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1869. </tr>
  1870. </table>
  1871. </div><div class="memdoc">
  1872. <p>Set the files position to current position + <em>pos</em>. See <a class="el" href="class_fs_base_file.html#a460f7598c903b8a4b4fe868dacccb6dd">seekSet()</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  1873. <table class="params">
  1874. <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>The new position in bytes from the current position. </td></tr>
  1875. </table>
  1876. </dd>
  1877. </dl>
  1878. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1879. </div>
  1880. </div>
  1881. <a id="ade9f9a9ac4d3e0a392a6cc45c9551767"></a>
  1882. <h2 class="memtitle"><span class="permalink"><a href="#ade9f9a9ac4d3e0a392a6cc45c9551767">&#9670;&nbsp;</a></span>seekEnd()</h2>
  1883. <div class="memitem">
  1884. <div class="memproto">
  1885. <table class="mlabels">
  1886. <tr>
  1887. <td class="mlabels-left">
  1888. <table class="memname">
  1889. <tr>
  1890. <td class="memname">bool FsBaseFile::seekEnd </td>
  1891. <td>(</td>
  1892. <td class="paramtype">int64_t&#160;</td>
  1893. <td class="paramname"><em>offset</em> = <code>0</code></td><td>)</td>
  1894. <td></td>
  1895. </tr>
  1896. </table>
  1897. </td>
  1898. <td class="mlabels-right">
  1899. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1900. </tr>
  1901. </table>
  1902. </div><div class="memdoc">
  1903. <p>Set the files position to end-of-file + <em>offset</em>. See <a class="el" href="class_fs_base_file.html#a460f7598c903b8a4b4fe868dacccb6dd">seekSet()</a>. Can't be used for directory files since file size is not defined. </p><dl class="params"><dt>Parameters</dt><dd>
  1904. <table class="params">
  1905. <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>The new position in bytes from end-of-file. </td></tr>
  1906. </table>
  1907. </dd>
  1908. </dl>
  1909. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1910. </div>
  1911. </div>
  1912. <a id="a460f7598c903b8a4b4fe868dacccb6dd"></a>
  1913. <h2 class="memtitle"><span class="permalink"><a href="#a460f7598c903b8a4b4fe868dacccb6dd">&#9670;&nbsp;</a></span>seekSet()</h2>
  1914. <div class="memitem">
  1915. <div class="memproto">
  1916. <table class="mlabels">
  1917. <tr>
  1918. <td class="mlabels-left">
  1919. <table class="memname">
  1920. <tr>
  1921. <td class="memname">bool FsBaseFile::seekSet </td>
  1922. <td>(</td>
  1923. <td class="paramtype">uint64_t&#160;</td>
  1924. <td class="paramname"><em>pos</em></td><td>)</td>
  1925. <td></td>
  1926. </tr>
  1927. </table>
  1928. </td>
  1929. <td class="mlabels-right">
  1930. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1931. </tr>
  1932. </table>
  1933. </div><div class="memdoc">
  1934. <p>Sets a file's position.</p>
  1935. <dl class="params"><dt>Parameters</dt><dd>
  1936. <table class="params">
  1937. <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>The new position in bytes from the beginning of the file.</td></tr>
  1938. </table>
  1939. </dd>
  1940. </dl>
  1941. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1942. </div>
  1943. </div>
  1944. <a id="a1c27b009372668a9c2de4a57195b0b36"></a>
  1945. <h2 class="memtitle"><span class="permalink"><a href="#a1c27b009372668a9c2de4a57195b0b36">&#9670;&nbsp;</a></span>size()</h2>
  1946. <div class="memitem">
  1947. <div class="memproto">
  1948. <table class="mlabels">
  1949. <tr>
  1950. <td class="mlabels-left">
  1951. <table class="memname">
  1952. <tr>
  1953. <td class="memname">uint64_t FsBaseFile::size </td>
  1954. <td>(</td>
  1955. <td class="paramname"></td><td>)</td>
  1956. <td></td>
  1957. </tr>
  1958. </table>
  1959. </td>
  1960. <td class="mlabels-right">
  1961. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1962. </tr>
  1963. </table>
  1964. </div><div class="memdoc">
  1965. <dl class="section return"><dt>Returns</dt><dd>the file's size. </dd></dl>
  1966. </div>
  1967. </div>
  1968. <a id="acf2d9261c5c1b1b022a0414cdfe0a17b"></a>
  1969. <h2 class="memtitle"><span class="permalink"><a href="#acf2d9261c5c1b1b022a0414cdfe0a17b">&#9670;&nbsp;</a></span>sync()</h2>
  1970. <div class="memitem">
  1971. <div class="memproto">
  1972. <table class="mlabels">
  1973. <tr>
  1974. <td class="mlabels-left">
  1975. <table class="memname">
  1976. <tr>
  1977. <td class="memname">bool FsBaseFile::sync </td>
  1978. <td>(</td>
  1979. <td class="paramname"></td><td>)</td>
  1980. <td></td>
  1981. </tr>
  1982. </table>
  1983. </td>
  1984. <td class="mlabels-right">
  1985. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1986. </tr>
  1987. </table>
  1988. </div><div class="memdoc">
  1989. <p>The <a class="el" href="class_fs_base_file.html#acf2d9261c5c1b1b022a0414cdfe0a17b">sync()</a> call causes all modified data and directory fields to be written to the storage device.</p>
  1990. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1991. </div>
  1992. </div>
  1993. <a id="acea65e639feebaac01964af02a77d324"></a>
  1994. <h2 class="memtitle"><span class="permalink"><a href="#acea65e639feebaac01964af02a77d324">&#9670;&nbsp;</a></span>timestamp()</h2>
  1995. <div class="memitem">
  1996. <div class="memproto">
  1997. <table class="mlabels">
  1998. <tr>
  1999. <td class="mlabels-left">
  2000. <table class="memname">
  2001. <tr>
  2002. <td class="memname">bool FsBaseFile::timestamp </td>
  2003. <td>(</td>
  2004. <td class="paramtype">uint8_t&#160;</td>
  2005. <td class="paramname"><em>flags</em>, </td>
  2006. </tr>
  2007. <tr>
  2008. <td class="paramkey"></td>
  2009. <td></td>
  2010. <td class="paramtype">uint16_t&#160;</td>
  2011. <td class="paramname"><em>year</em>, </td>
  2012. </tr>
  2013. <tr>
  2014. <td class="paramkey"></td>
  2015. <td></td>
  2016. <td class="paramtype">uint8_t&#160;</td>
  2017. <td class="paramname"><em>month</em>, </td>
  2018. </tr>
  2019. <tr>
  2020. <td class="paramkey"></td>
  2021. <td></td>
  2022. <td class="paramtype">uint8_t&#160;</td>
  2023. <td class="paramname"><em>day</em>, </td>
  2024. </tr>
  2025. <tr>
  2026. <td class="paramkey"></td>
  2027. <td></td>
  2028. <td class="paramtype">uint8_t&#160;</td>
  2029. <td class="paramname"><em>hour</em>, </td>
  2030. </tr>
  2031. <tr>
  2032. <td class="paramkey"></td>
  2033. <td></td>
  2034. <td class="paramtype">uint8_t&#160;</td>
  2035. <td class="paramname"><em>minute</em>, </td>
  2036. </tr>
  2037. <tr>
  2038. <td class="paramkey"></td>
  2039. <td></td>
  2040. <td class="paramtype">uint8_t&#160;</td>
  2041. <td class="paramname"><em>second</em>&#160;</td>
  2042. </tr>
  2043. <tr>
  2044. <td></td>
  2045. <td>)</td>
  2046. <td></td><td></td>
  2047. </tr>
  2048. </table>
  2049. </td>
  2050. <td class="mlabels-right">
  2051. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2052. </tr>
  2053. </table>
  2054. </div><div class="memdoc">
  2055. <p>Set a file's timestamps in its directory entry.</p>
  2056. <dl class="params"><dt>Parameters</dt><dd>
  2057. <table class="params">
  2058. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>Values for <em>flags</em> are constructed by a bitwise-inclusive OR of flags from the following list</td></tr>
  2059. </table>
  2060. </dd>
  2061. </dl>
  2062. <p>T_ACCESS - Set the file's last access date.</p>
  2063. <p>T_CREATE - Set the file's creation date and time.</p>
  2064. <p>T_WRITE - Set the file's last write/modification date and time.</p>
  2065. <dl class="params"><dt>Parameters</dt><dd>
  2066. <table class="params">
  2067. <tr><td class="paramdir">[in]</td><td class="paramname">year</td><td>Valid range 1980 - 2107 inclusive.</td></tr>
  2068. <tr><td class="paramdir">[in]</td><td class="paramname">month</td><td>Valid range 1 - 12 inclusive.</td></tr>
  2069. <tr><td class="paramdir">[in]</td><td class="paramname">day</td><td>Valid range 1 - 31 inclusive.</td></tr>
  2070. <tr><td class="paramdir">[in]</td><td class="paramname">hour</td><td>Valid range 0 - 23 inclusive.</td></tr>
  2071. <tr><td class="paramdir">[in]</td><td class="paramname">minute</td><td>Valid range 0 - 59 inclusive.</td></tr>
  2072. <tr><td class="paramdir">[in]</td><td class="paramname">second</td><td>Valid range 0 - 59 inclusive</td></tr>
  2073. </table>
  2074. </dd>
  2075. </dl>
  2076. <dl class="section note"><dt>Note</dt><dd>It is possible to set an invalid date since there is no check for the number of days in a month.</dd>
  2077. <dd>
  2078. Modify and access timestamps may be overwritten if a date time callback function has been set by dateTimeCallback().</dd></dl>
  2079. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2080. </div>
  2081. </div>
  2082. <a id="a2a0bf00241df08a604f054512746986b"></a>
  2083. <h2 class="memtitle"><span class="permalink"><a href="#a2a0bf00241df08a604f054512746986b">&#9670;&nbsp;</a></span>truncate() <span class="overload">[1/2]</span></h2>
  2084. <div class="memitem">
  2085. <div class="memproto">
  2086. <table class="mlabels">
  2087. <tr>
  2088. <td class="mlabels-left">
  2089. <table class="memname">
  2090. <tr>
  2091. <td class="memname">bool FsBaseFile::truncate </td>
  2092. <td>(</td>
  2093. <td class="paramname"></td><td>)</td>
  2094. <td></td>
  2095. </tr>
  2096. </table>
  2097. </td>
  2098. <td class="mlabels-right">
  2099. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2100. </tr>
  2101. </table>
  2102. </div><div class="memdoc">
  2103. <p>Truncate a file to the current position.</p>
  2104. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2105. </div>
  2106. </div>
  2107. <a id="a47247cc54157ef79e0752f55ba01cf7e"></a>
  2108. <h2 class="memtitle"><span class="permalink"><a href="#a47247cc54157ef79e0752f55ba01cf7e">&#9670;&nbsp;</a></span>truncate() <span class="overload">[2/2]</span></h2>
  2109. <div class="memitem">
  2110. <div class="memproto">
  2111. <table class="mlabels">
  2112. <tr>
  2113. <td class="mlabels-left">
  2114. <table class="memname">
  2115. <tr>
  2116. <td class="memname">bool FsBaseFile::truncate </td>
  2117. <td>(</td>
  2118. <td class="paramtype">uint64_t&#160;</td>
  2119. <td class="paramname"><em>length</em></td><td>)</td>
  2120. <td></td>
  2121. </tr>
  2122. </table>
  2123. </td>
  2124. <td class="mlabels-right">
  2125. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2126. </tr>
  2127. </table>
  2128. </div><div class="memdoc">
  2129. <p>Truncate a file to a specified length. The current file position will be set to end of file.</p>
  2130. <dl class="params"><dt>Parameters</dt><dd>
  2131. <table class="params">
  2132. <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>The desired length for the file.</td></tr>
  2133. </table>
  2134. </dd>
  2135. </dl>
  2136. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2137. </div>
  2138. </div>
  2139. <a id="aa763e83fea4889828effc3308f13113a"></a>
  2140. <h2 class="memtitle"><span class="permalink"><a href="#aa763e83fea4889828effc3308f13113a">&#9670;&nbsp;</a></span>write() <span class="overload">[1/2]</span></h2>
  2141. <div class="memitem">
  2142. <div class="memproto">
  2143. <table class="mlabels">
  2144. <tr>
  2145. <td class="mlabels-left">
  2146. <table class="memname">
  2147. <tr>
  2148. <td class="memname">size_t FsBaseFile::write </td>
  2149. <td>(</td>
  2150. <td class="paramtype">const void *&#160;</td>
  2151. <td class="paramname"><em>buf</em>, </td>
  2152. </tr>
  2153. <tr>
  2154. <td class="paramkey"></td>
  2155. <td></td>
  2156. <td class="paramtype">size_t&#160;</td>
  2157. <td class="paramname"><em>count</em>&#160;</td>
  2158. </tr>
  2159. <tr>
  2160. <td></td>
  2161. <td>)</td>
  2162. <td></td><td></td>
  2163. </tr>
  2164. </table>
  2165. </td>
  2166. <td class="mlabels-right">
  2167. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2168. </tr>
  2169. </table>
  2170. </div><div class="memdoc">
  2171. <p>Write data to an open file.</p>
  2172. <dl class="section note"><dt>Note</dt><dd>Data is moved to the cache but may not be written to the storage device until <a class="el" href="class_fs_base_file.html#acf2d9261c5c1b1b022a0414cdfe0a17b">sync()</a> is called.</dd></dl>
  2173. <dl class="params"><dt>Parameters</dt><dd>
  2174. <table class="params">
  2175. <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Pointer to the location of the data to be written.</td></tr>
  2176. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>Number of bytes to write.</td></tr>
  2177. </table>
  2178. </dd>
  2179. </dl>
  2180. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_fs_base_file.html#a023c0392aa72b32652546f48ef8ba1e5">write()</a> returns the number of bytes written, always <em>nbyte</em>. If an error occurs, <a class="el" href="class_fs_base_file.html#a023c0392aa72b32652546f48ef8ba1e5">write()</a> returns -1. Possible errors include <a class="el" href="class_fs_base_file.html#a023c0392aa72b32652546f48ef8ba1e5">write()</a> is called before a file has been opened, write is called for a read-only file, device is full, a corrupt file system or an I/O error. </dd></dl>
  2181. </div>
  2182. </div>
  2183. <a id="a023c0392aa72b32652546f48ef8ba1e5"></a>
  2184. <h2 class="memtitle"><span class="permalink"><a href="#a023c0392aa72b32652546f48ef8ba1e5">&#9670;&nbsp;</a></span>write() <span class="overload">[2/2]</span></h2>
  2185. <div class="memitem">
  2186. <div class="memproto">
  2187. <table class="mlabels">
  2188. <tr>
  2189. <td class="mlabels-left">
  2190. <table class="memname">
  2191. <tr>
  2192. <td class="memname">size_t FsBaseFile::write </td>
  2193. <td>(</td>
  2194. <td class="paramtype">uint8_t&#160;</td>
  2195. <td class="paramname"><em>b</em></td><td>)</td>
  2196. <td></td>
  2197. </tr>
  2198. </table>
  2199. </td>
  2200. <td class="mlabels-right">
  2201. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2202. </tr>
  2203. </table>
  2204. </div><div class="memdoc">
  2205. <p>Write a byte to a file. Required by the Arduino Print class. </p><dl class="params"><dt>Parameters</dt><dd>
  2206. <table class="params">
  2207. <tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>the byte to be written. Use getWriteError to check for errors. </td></tr>
  2208. </table>
  2209. </dd>
  2210. </dl>
  2211. <dl class="section return"><dt>Returns</dt><dd>1 for success and 0 for failure. </dd></dl>
  2212. </div>
  2213. </div>
  2214. <hr/>The documentation for this class was generated from the following files:<ul>
  2215. <li>ArduinoSdFat/libraries/SdFat/src/FsLib/<a class="el" href="_fs_file_8h.html">FsFile.h</a></li>
  2216. <li>ArduinoSdFat/libraries/SdFat/src/FsLib/FsFile.cpp</li>
  2217. </ul>
  2218. </div><!-- contents -->
  2219. <!-- start footer part -->
  2220. <hr class="footer"/><address class="footer"><small>
  2221. Generated on Fri Dec 6 2019 09:45:12 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  2222. <img class="footer" src="doxygen.png" alt="doxygen"/>
  2223. </a> 1.8.16
  2224. </small></address>
  2225. </body>
  2226. </html>