diff --git a/docs/en/modules/file.md b/docs/en/modules/file.md index 9cbfa93e..8fcee748 100644 --- a/docs/en/modules/file.md +++ b/docs/en/modules/file.md @@ -162,7 +162,7 @@ Not supported for internal flash. `file.mount(ldrv[, pin])` #### Parameters -- `ldrv` name of the logical drive, `SD0:`, `SD1:`, etc. +- `ldrv` name of the logical drive, `/SD0`, `/SD1`, etc. - `pin` 1~12, IO index for SS/CS, defaults to 8 if omitted. #### Returns @@ -170,7 +170,7 @@ Volume object #### Example ```lua -vol = file.mount("SD0:") +vol = file.mount("/SD0") vol:umount() ``` @@ -179,6 +179,7 @@ vol:umount() Registers callback functions. Trigger events are: + - `rtc` deliver current date & time to the file system. Function is expected to return a table containing the fields `year`, `mon`, `day`, `hour`, `min`, `sec` of current date and time. Not supported for internal flash. #### Syntax @@ -204,7 +205,7 @@ sntp.sync(server_ip, ``` #### See also -[`rtctime.epoch2cal()`](rtctime.md#rtctimepoch2cal) +[`rtctime.epoch2cal()`](rtctime.md#rtctimeepoch2cal) ## file.open() diff --git a/docs/en/sdcard.md b/docs/en/sdcard.md index 66aafadd..61b6580c 100644 --- a/docs/en/sdcard.md +++ b/docs/en/sdcard.md @@ -2,7 +2,6 @@ Accessing files on external SD cards is currently only supported from the `file` module. This imposes the same overall restrictions of internal SPIFFS to SD cards: -- only one file can be opened at a time - no support for sub-folders - no timestamps - no file attributes (read-only, system, etc.)