luatool icon indicating copy to clipboard operation
luatool copied to clipboard

Add delete commands.

Open egelmex opened this issue 9 years ago • 5 comments

I know it's a simple command but being able to delete files from the command would be useful.

  • delete specified file (or wild card?)
  • delete all files

egelmex avatar May 11 '15 19:05 egelmex

I agree, my vote as well. I'd be happy with a "format" command.

uchobby avatar Jun 01 '15 05:06 uchobby

Could we have a "Halt" command. Something to stop the code so that we can do the file management without being interrupted by whatever might be running?

uchobby avatar Jun 01 '15 05:06 uchobby

I see --wipe exists, though I don't know why it tries to parse the entire list of files instead of using file.format(). @uchobby I don't think NodeMCU supports interrupting execution.

trisk avatar Jun 08 '15 00:06 trisk

I'll try wipe, might be good enough.

On the "Halt"... is there a way to keep it from loading init.lua if it's caught just after reset? What I'm thinking is that a command could be sent, near continuously, so that when reset is pressed, it's stopped just in time. The command would watch for the correct response and then start the upload. More like what a typical boot loader does..

If we could get the firmware updated to do this, say a 1 second pause after reset, before loading init...

uchobby avatar Jun 08 '15 20:06 uchobby

Could the --delete command from PR #32 can fulfill your requirements?

ghost avatar Nov 05 '15 20:11 ghost