301
Support and Feedback / Re: Can't get MC.Filesystem.Delete to work
« on: July 30, 2022, 16:49:13 »Well thanks for the fun Mathias!
You got me twice,
1. because I was using the earlier release without the updated function
2. it killed <20 files it found in the directory above the focused one.
No problem as I was able to recover them. Only lost a zip with all my crypto-currency addresses, but what's $1.6m between friends....
...A few more tests will be needed I think!
1. first version was missing some logging that was not included in the release. I also improved how it handled filters and if the path is pointing to file instead and folder..
2. USE_CURRENT_SOURCEITEM take the item that are in focus from the panel that are in focus (source panel). but it is important that the correct panel is active.. so it picks correct.
it should not pick a folder above.. it picks the one that is on focus. that the line marker is on..
Hmm Might be to dangerous function to allow delete so easy. Maybe should require a confirmation box. ? maybe a "Do you really want to delete : <folder> ?" box ?, but the idea with script it to not have them..