mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-28 11:46:20 -04:00
8e5eba8735
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
12 lines
286 B
Go
12 lines
286 B
Go
package continuity
|
|
|
|
import "os"
|
|
|
|
// newBaseResource returns a *resource, populated with data from p and fi,
|
|
// where p will be populated directly.
|
|
func newBaseResource(p string, fi os.FileInfo) (*resource, error) {
|
|
return &resource{
|
|
paths: []string{p},
|
|
mode: fi.Mode(),
|
|
}, nil
|
|
}
|