deferDeleteTempFile marks a file to be deleted by next call to Cleanup()
(path string)
| 40 | |
| 41 | // deferDeleteTempFile marks a file to be deleted by next call to Cleanup() |
| 42 | func deferDeleteTempFile(path string) { |
| 43 | tempFilesMu.Lock() |
| 44 | tempFiles = append(tempFiles, path) |
| 45 | tempFilesMu.Unlock() |
| 46 | } |
| 47 | |
| 48 | // cleanupTempFiles removes any temporary files selected for deferred cleaning. |
| 49 | func cleanupTempFiles() error { |
no outgoing calls
searching dependent graphs…