You want that path to be fully removed. If it does not exist, then it's already done, nothing to do, the desired result has been achieved (already).
xiaq a következőt írta (2023. április 24., hétfő, 16:42:22 UTC+2): > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/414a68c6-1f7c-4703-865f-77288dadb993n%40googlegroups.com.
