Update GrainOS.ino

This commit is contained in:
dangrain 2025-03-24 22:28:40 +01:00
parent 427d76b55b
commit 546613ac68

View file

@ -1,4 +1,3 @@
struct File { struct File {
String name; String name;
String content; String content;
@ -99,7 +98,7 @@ void loop() {
String name = input.substring(5); // This is your cat, but this was simpler to write, fuck it String name = input.substring(5); // This is your cat, but this was simpler to write, fuck it
readFile(name); readFile(name);
} }
else if (input.startsWith("rm ")) { else if (input.startsWith("delete ")) {
String name = input.substring(7); //deletes files (has no flags) String name = input.substring(7); //deletes files (has no flags)
deleteFile(name); deleteFile(name);
} }