File related helpers for Go