Ryan Liptak 8cec8f6ddd fs.Dir.deleteTree: Reduce the number of failing deleteFile calls
There are two parts to this:

1. The deleteFile call on the sub_path has been moved outside the loop, since if the first call fails with `IsDir` then it's very likely that all the subsequent calls will do the same. Instead, if the `openIterableDir` call ever hits `NotDir` after the `deleteFile` hit `IsDir`, then we assume that the tree was deleted at some point and can consider the deleteTree a success.

2. Inside the `dir_it.next()` loop, we look at entry.kind and only try doing the relevant (deleteFile/openIterableDir) operation, but always fall back to the other if we get the relevant error (NotDir/IsDir).
2022-10-05 03:26:13 -07:00
..
2022-09-28 13:00:00 +03:00
2022-09-12 18:13:24 -07:00
2022-08-31 19:30:51 +02:00
2022-08-23 21:11:02 -07:00
2022-01-07 00:06:06 -05:00
2022-09-11 23:18:43 -04:00
2022-05-26 21:58:19 -07:00
2022-09-07 15:22:30 +03:00
2022-09-29 21:40:25 +02:00
2022-09-12 18:13:24 -07:00
2022-04-15 17:01:01 -05:00
2022-01-07 00:06:06 -05:00
2022-09-13 20:26:04 -04:00