Reference   Language | Libraries | Comparison | Changes

Bridge : FileIO Class

FileSystem.exists()

Description

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

This communicates with the Linino distribution through Bridge. While functionally similar to the SD library, the underlying code and hardware connections are different.

Syntax

  • FileSystem.exists(filename)

Parameters

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

Returns

boolean : true if the file or directory exists, false if not

Example

See also


Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Share