Unverified Commit 6a0cc90a authored by Earle F. Philhower, III's avatar Earle F. Philhower, III Committed by GitHub

Update fs.rst (#1754)

Fix #1753
parent 21d212a2
...@@ -137,7 +137,7 @@ before mounting. All filesystems have their own ``*Config`` (i.e. ...@@ -137,7 +137,7 @@ before mounting. All filesystems have their own ``*Config`` (i.e.
All filesystems allow explicitly enabling/disabling formatting when All filesystems allow explicitly enabling/disabling formatting when
mounts fail. If you do not call this ``setConfig`` method before mounts fail. If you do not call this ``setConfig`` method before
perforing ``begin()``, you will get the filesystem's default perforing ``begin()``, you will get the filesystem's default
behavior and configuration. By default, SPIFFS will autoformat the behavior and configuration. By default, LittleFS will autoformat the
filesystem if it cannot mount it, while SDFS will not. filesystem if it cannot mount it, while SDFS will not.
begin begin
...@@ -150,8 +150,7 @@ begin ...@@ -150,8 +150,7 @@ begin
This method mounts file system. It must be called before any This method mounts file system. It must be called before any
other FS APIs are used. Returns *true* if file system was mounted other FS APIs are used. Returns *true* if file system was mounted
successfully, false otherwise. With no options it will format SPIFFS successfully, false otherwise.
if it is unable to mount it on the first try.
Note that LittleFS will automatically format the filesystem Note that LittleFS will automatically format the filesystem
if one is not detected. This is configurable via ``setConfig`` if one is not detected. This is configurable via ``setConfig``
...@@ -264,8 +263,6 @@ openDir ...@@ -264,8 +263,6 @@ openDir
or LittleFS.openDir(path) or LittleFS.openDir(path)
Opens a directory given its absolute path. Returns a *Dir* object. Opens a directory given its absolute path. Returns a *Dir* object.
Please note the previous discussion on the difference in behavior between
LittleFS and SPIFFS for this call.
remove remove
~~~~~~ ~~~~~~
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment