2016. november 18., péntek 12:21:48 UTC+1 időpontban Jan Mercl a következőt írta: > > On Fri, Nov 18, 2016 at 11:21 AM Ondrej <ondrej...@gmail.com <javascript:>> > wrote: > > Not sure if it's correct, just an idea (error handling elided): > > func main() { > ... > exec.Cmd(browser, pathName).Start() > syscal.Unlink(pathName) > } > > The temp file in pathName will be deleted when the browser closes the file. > > -- > > -j >
Only on normal fs, not on Windows (or you have to open the file with *FILE_SHARE_DELETE* flag...) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.