pkg/path/testdata: stage filepath files from Go
As we are going to support functions for all OSes, we
cannot rely on the current Go API. We copy the
implementation and modify.
This is a simple copy from tip in 1.15.
Modifications are done in followup CLs and files
will eventually be moved to pkg/path after
modifications.
Change-Id: I8f0feffab6c711ae78a1c6b63e370229a9e7cbe1
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/7843
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>