-
Notifications
You must be signed in to change notification settings - Fork 7.6k
FFAT exists throws error when file does not exist #6749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @frankcohen, tested on ESP32-S3 DevKitC-1 v1.6 with no issues. Everything working as expected :) This is my debug message:
|
Thanks for testing it Prochy. It might just be my noob-y-ness. For example, the begin(10) is because I was expecting I could use FFat to access an SD card with GPIO 10 for its chip select on SPI. I see now that begin(true/false) changes the format of the mounted drive. I retested using the same partition scheme and get the same results. -Frank |
Still continue in arduino 3.0.4 this issue |
Board
Adafruit Feather ESP32-S3
Device Description
I added these lines to the examples->FFat->FFat_Test at line 182:
I see this in the Arduino IDE Serial Monitor:
...
Hello World!
[ 6785][E][vfs_api.cpp:104] open(): /ffat/hello.txt does not exist, no permits for creation
foo.txt does not exist
foo.txt exists
Listing directory: /
FILE: foo.txt SIZE: 14
...
I expected file.exists() would return an error.
-Frank
Hardware Configuration
SD NAND card on the SPI bus with chip select on GPIO 10
Version
latest development Release Candidate (RC-X)
IDE Name
Arduino IDE 1.8.10
Operating System
MacOS 12.3.1
Flash frequency
40
PSRAM enabled
no
Upload speed
115200
Description
I initialize the Serial object with:
Serial.begin(115200);
Serial.setDebugOutput(true);
delay(5000);
exists() does not seem to return a boolean value when the file does not exist.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: