Documentation ¶
Index ¶
- Constants
- func ChangeConsoleMode(console Handle, ops ...ModeOp) (func(), error)
- func Chdir(folder string) (err error)
- func Chdrive(drive string) (string, error)
- func Copy(src, dst string, isFailIfExists bool) error
- func EnableProcessInput() (func(), error)
- func GetFileAttributes(path string) (uint32, error)
- func GetHome() string
- func IsExecutableSuffix(path string) bool
- func IsGui(fname string) bool
- func Join(paths ...string) string
- func JoinList(values ...string) string
- func LookPath(where LookCurdirT, name string, envnames ...string) string
- func Move(src, dst string) error
- func ReplaceHomeToTilde(wd string) string
- func ReplaceHomeToTildeSlash(wd string) string
- func SetFileAttributes(path string, attr uint32) error
- func ShOpenWithDialog(filename, class string) (err error)
- func TimeFormatOsLayout(t time.Time) (string, error)
- func Truncate(folder string, whenError func(string, error) bool, out io.Writer) error
- type Handle
- type LookCurdirT
- type ModeOp
- type ModeReset
- type ModeSet
Constants ¶
const (
REPARSE_POINT = reparsePoint
)
const S_OK = 0
Code generated by go-importconst DO NOT EDIT.
Variables ¶
This section is empty.
Functions ¶
func ChangeConsoleMode ¶
func Chdrive ¶
Chdrive changes drive without changing the working directory there. And returns the previous working directory.
func EnableProcessInput ¶
func EnableProcessInput() (func(), error)
EnableProcessInput enables Ctrl-C's signal and console's echo back.
func GetFileAttributes ¶
func IsExecutableSuffix ¶
IsExecutableSuffix returns true if suffix exists in %PATHEXT% and %NYAGOSPATHEXT%
func Join ¶
Join is compatible with CPath::Combine of MFC (ex:`C:\foo` + `\bar` -> `c:\bar`) Do not clean path (keep `./` on arguments)
func LookPath ¶
func LookPath(where LookCurdirT, name string, envnames ...string) string
LookPath search `name` from %PATH% and the directories listed by the environment variables `envnames`.
func ReplaceHomeToTilde ¶
ReplaceHomeToTilde replaces path like C:\users\name\foo\bar -> ~\foo\bar
func ReplaceHomeToTildeSlash ¶
ReplaceHomeToTildeSlash replaces path like C:\users\name\foo\bar -> ~/foo/bar
func SetFileAttributes ¶
func ShOpenWithDialog ¶
Types ¶
type LookCurdirT ¶
type LookCurdirT int
LookCurdirT is the type for constant meaning the current directory should be looked.
const ( // LookCurdirFirst means that the current directory should be looked at first. LookCurdirFirst LookCurdirT = iota // LookCurdirLast means that the current directory should be looked at last. LookCurdirLast // LookCurdirNever menas that the current directory should be never looked. LookCurdirNever )
Source Files ¶
- chdrivedir.go
- consolemode.go
- consolemode_unix.go
- const.go
- copy.go
- copy_unix.go
- fileattr.go
- fileattr_linux.go
- home.go
- isgui.go
- isgui_unix.go
- join.go
- joinlist.go
- lookpath.go
- lookpath_unix.go
- osdatelayout.go
- osdatelayout_unix.go
- pathext.go
- shopenwith.go
- shopenwith_unix.go
- truncate.go
- truncate_unix.go
- zconst.go