-
Notifications
You must be signed in to change notification settings - Fork 0
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
Telecommand: LFS delete file (#227) #233
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks good. This just needs to be tested.
I was able to quickly test this using my NAND memory module. Looks good! Here are some things to consider that I found during testing (while not directly linked to the issue itself but worth getting investigated if possible): |
Thank you for testing! I'll take a look into the issues and get them fixed right away! Passing a filename argument of "" should not be acceptable, there should be an error case for an empty argument. |
Added notes to littleFS write and delete file telecommands to clarify how to pass arguments without the use of quotations.
While looking through the code, I found that the "Error parsing file name arg" condition was trivial since passing no arguments to this telecommand prompts a telecommand parsing error. However, I will keep the statement in the code just to be safe. I added a note in the doc string indicating to not add quotations around the argument when parsing |
another good thing to mention is that it might be nice to wait until Saksham's |
Resolves #227:
Summary
LFS_delete_file
helper function to delete a file from LFS