Hi, The os.RemoveAll function <https://pkg.go.dev/os#RemoveAll> does not return an error when the path doesn't exist. Given that this is documented explicitly and implemented using an explicit check <https://cs.opensource.google/go/go/+/master:src/os/removeall_at.go;l=30;drc=52af6550c92b1023e64c48e7b0fd947e539fb30f>, this seems to be a conscious design choice rather than an accidental implementation detail.
Does anybody know what the rationale behind this is? I haven't been able to find any information in this forum or elsewhere. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/76c95104-c0b5-4b7a-9500-da7e7a91fdban%40googlegroups.com.