Documentation ¶
Index ¶
- Constants
- func AtoU(mbcs []byte) (string, error)
- func Chdir(folder_ string) error
- func Chdrive(drive string) error
- func CoInitializeEx(res, opt uintptr)
- func CoUninitialize()
- func Copy(src string, dst string, isFailIfExists bool) error
- func CorrectPathCase(path string) (string, error)
- func DirName(path string) string
- func ForFiles(pattern string, callback func(*FileInfo) bool) error
- func GetFileAttributes(path string) (uint32, error)
- func GetFileAttributesFromFileInfo(status os.FileInfo) uint32
- func GetHome() string
- func GetModuleFileName() (string, error)
- func Getwd() (string, error)
- func Glob(pattern string) ([]string, error)
- func IsExecutableSuffix(path string) bool
- func Join(paths ...string) string
- func Move(src, dst string) error
- func ReadAnsiLine(f *os.File) (string, error)
- func ReplaceHomeToTilde(wd string) string
- func ReplaceHomeToTildeSlash(wd string) string
- func SetFileAttributes(path string, attr uint32) error
- func ShellExecute(action string, path string, param string, directory string) error
- func Truncate(folder string, whenError func(string, error) bool, out io.Writer) error
- func UtoA(utf8 string) ([]byte, error)
- func YenYen2Yen(path string) string
- type FileInfo
- func (this *FileInfo) Attribute() uint32
- func (this *FileInfo) IsDir() bool
- func (this *FileInfo) IsExecutable() bool
- func (this *FileInfo) IsHidden() bool
- func (this *FileInfo) IsReadOnly() bool
- func (this *FileInfo) IsReparsePoint() bool
- func (this *FileInfo) IsSystem() bool
- func (this *FileInfo) ModTime() time.Time
- func (this *FileInfo) Mode() os.FileMode
- func (this *FileInfo) Name() string
- func (this *FileInfo) Size() int64
- func (this *FileInfo) Sys() interface{}
Constants ¶
View Source
const ( COINIT_APARTMENTTHREADED uintptr = 0x2 COINIT_MULTITHREADED uintptr = 0x0 COINIT_DISABLE_OLE1DDE uintptr = 0x4 COINIT_SPEED_OVER_MEMORY uintptr = 0x8 )
View Source
const ( SW_HIDE = 0 SW_MAXIMIZE = 3 SW_MINIMIZE = 6 SW_RESTORE = 9 SW_SHOW = 5 SW_SHOWDEFAULT = 1 SW_SHOWMAXIMIZED = 3 SW_SHOWMINIMIZED = 2 SW_SHOWMINNOACTIVE = 7 SW_SHOWNA = 8 SW_SHOWNOACTIVATE = 4 SW_SHOWNORMAL = 1 )
View Source
const ( EDIT = "edit" EXPLORE = "explore" OPEN = "open" PRINT = "print" PROPERTIES = "properties" RUNAS = "runas" )
View Source
const CP_THREAD_ACP = 3
View Source
const FILE_ATTRIBUTE_HIDDEN = 0x00000002
View Source
const FILE_ATTRIBUTE_NORMAL = 0x00000080
View Source
const FILE_ATTRIBUTE_REPARSE_POINT = 0x00000400
View Source
const MOVEFILE_COPY_ALLOWED = 0x00000002
View Source
const MOVEFILE_REPLACE_EXISTING = 0x00000001
View Source
const MOVEFILE_WRITE_THROUGH = 0x00000008
Variables ¶
This section is empty.
Functions ¶
func Chdir ¶
Change the current working directory without changeing the working directory in the last drive.
func CoInitializeEx ¶
func CoInitializeEx(res, opt uintptr)
func CoUninitialize ¶
func CoUninitialize()
func CorrectPathCase ¶
func GetFileAttributes ¶
func GetModuleFileName ¶
func IsExecutableSuffix ¶
func ReplaceHomeToTilde ¶
func ReplaceHomeToTildeSlash ¶
func SetFileAttributes ¶
func ShellExecute ¶
Call ShellExecute-API: edit,explore,open and so on.
func YenYen2Yen ¶
Types ¶
type FileInfo ¶
type FileInfo struct {
// contains filtered or unexported fields
}
func (*FileInfo) IsExecutable ¶
func (*FileInfo) IsReadOnly ¶
func (*FileInfo) IsReparsePoint ¶
Click to show internal directories.
Click to hide internal directories.