Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,32 +57,6 @@ SD.exists(filename)
* [remove()](#remove)
* [rmdir()](#rmdir)

### `exists()`

Tests whether a file or directory exists on the SD card.

#### Syntax

```
SD.exists(filename)
```

#### Parameters

* `filename`: the name of the file to test for existence, which can include directories (delimited by forward-slashes, /).

#### Returns

1 if the file or directory exists, 0 if not.

#### See also

* [begin()](#begin)
* [mkdir()](#mkdir)
* [open()](#open)
* [remove()](#remove)
* [rmdir()](#rmdir)

### `mkdir()`

Create a directory on the SD card. This will also create any intermediate directories that don't already exists; e.g. `SD.mkdir("a/b/c")` will create a, b, and c.
Expand Down