fileutil

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyTree

func CopyTree(src, dest string) error

func LUtimesNano

func LUtimesNano(path string, ts []syscall.Timespec) error

func Lgetxattr added in v0.7.0

func Lgetxattr(path string, attr string) ([]byte, error)

Returns a nil slice and nil error if the xattr is not set

func Lsetxattr added in v0.7.0

func Lsetxattr(path string, attr string, data []byte, flags int) error

func TimeToTimespec

func TimeToTimespec(time time.Time) (ts syscall.Timespec)

TODO(sgotti) use UTIMES_OMIT on linux if Time.IsZero ?

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL