icewolfz / jiMUD

MUD client for ShadowMUD.com using electron
http://www.shadowmud.com
7 stars 0 forks source link

Immortal tools: Nested directory delete randomly breaks #278

Closed icewolfz closed 2 weeks ago

icewolfz commented 3 weeks ago

Seems there are issues when trying to delete complex directory structures, i think part of this issues is maybe timing as you have to first delete all files then the sub directories then the main directory, if the command list is built out of order or it starts wrong it deletes out of error thus can cause random errors, might be best to build a list and force delete at the last added always to ensure most nested files are deleted first, granted not sure how hard this is because may error out when trying to build will have to test

icewolfz commented 3 weeks ago

Right now it appears to delete as it goes which fails on complex nested folders, will require an entire redesign how the delete system works and will have to first generate a list and walk all sub folders over, and only when no more folders then delete starting with last and working to first, another option is to build a list of folders but delay removing until all files are gone the nwalk back the folder list

icewolfz commented 2 weeks ago

It seems to already track list but does not seem seem to work well