BotsBurgh / BOTSBURGH-FTC-2024-25

Code for our FTC 2024-25 season robot
https://botsburgh.github.io/BOTSBURGH-FTC-2024-25/
GNU General Public License v2.0
3 stars 0 forks source link

`Logging.close()` should close all open files #52

Closed BD103 closed 2 months ago

BD103 commented 3 months ago

Currently close() requires you to pass a String of the name of the file:

https://github.com/BotsBurgh/BOTSBURGH-FTC-2024-25/blob/7979f77fbb2b0349ec80d7d697bd040b5535e591/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/api/Logging.kt#L121-L123

Realistically we're never going to need to close individual files, just all of them at once. close() should be restructured to iterate over all files within fileHash and volatileFileHash and close them.