-
Notifications
You must be signed in to change notification settings - Fork 51
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
Looking for a function to retrieve used and free space on SD card prior to write. #93
Comments
Have a look at
|
Thank You Carl.
Another question: is there an example showing how to use: the
get_fileinfo(...) function?
Actually, all I need is the* file size. F*rom reviewing the ff.c file it
looks like a call to get_fileinfo is required to access file size.
Jim
…On Mon, Apr 15, 2024 at 8:59 PM Carl J Kugler III ***@***.***> wrote:
Have a look at
https://github.com/carlk3/no-OS-FatFS-SD-SPI-RPi-Pico/blob/196016f525e5b9c161f2b965ddd3045a4ef87649/example/FatFS_SPI_example.cpp#L175
—
Reply to this email directly, view it on GitHub
<#93 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5LB7QY7ZQKY5U3WDUYTN3Y5SAXFAVCNFSM6AAAAABGHMLVQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJYGA4TQNBZHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The
Also, see f_size. |
Hello Carl,
is there an example which demonstrates how to delete all files stored on
the SD card?
Thanks
Jim
…On Tue, Apr 16, 2024 at 4:35 PM Carl J Kugler III ***@***.***> wrote:
The ls function populates a FILINFO structure:
https://github.com/carlk3/no-OS-FatFS-SD-SPI-RPi-Pico/blob/196016f525e5b9c161f2b965ddd3045a4ef87649/example/FatFS_SPI_example.cpp#L215
—
Reply to this email directly, view it on GitHub
<#93 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5LB7TVAGULSAZM5TKNV3DY5WKTLAVCNFSM6AAAAABGHMLVQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJZHE3DAMJTGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
One way would be to simply format the card:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am storing large files on an SD card using this great library (thank you), but I need to verify that there is enough space remaining before the write and be able to send remote message if storage is low. I have not been able to locate a function in your library to retrieve this info. If it exist, could you show me a simple example?
The text was updated successfully, but these errors were encountered: