December 2021
Intermediate to advanced
510 pages
11h 20m
English
Currently, our program doesn’t clean up the temporary files because the method we used to create them doesn’t automatically clean them up. As you can see, running the tool multiple times creates different files:
| | $ go run main.go -file README.md |
| | /tmp/mdp552496404.html |
| | $ go run main.go -file README.md |
| | /tmp/mdp016541878.html |
| | $ ls -ltr /tmp/ | grep mdp |
| | -rw------- 1 ricardo users 503 Apr 15 10:25 mdp807323568.html |
| | -rw------- 1 ricardo users 503 Apr 15 10:27 mdp552496404.html |
| | -rw------- 1 ricardo users 503 Apr 15 10:31 mdp016541878.html |
This is expected as the program can’t assume how and when the files will be used. It’s your responsibility to delete ...
Read now
Unlock full access