Documentation ¶
Index ¶
- Variables
- func CloseFile(file *os.File) (err error)
- func Copy(src, dest string) (err error)
- func CopyNewtimes(src, dest string) (err error)
- func CopyWithoutHidden(src, dest string) (err error)
- func IsExist(filePath string) (ret bool)
- func IsHidden(filePath string) (ret bool)
- func Lock(filePath string)
- func OpenFile(filePath string, flag int, perm os.FileMode) (file *os.File, err error)
- func ReadFile(filePath string) (data []byte, err error)
- func Remove(p string) (err error)
- func Rename(p, newP string) (err error)
- func Unlock(filePath string)
- func Walk(root string, fn filepath.WalkFunc) error
- func WriteFile(filePath string, data []byte) (err error)
- func WriteFileByReader(filePath string, reader io.Reader) (err error)
- type RemoteFile
Constants ¶
This section is empty.
Variables ¶
View Source
var AndroidServerPort = 6906 // Android HTTP 服务器端口
Functions ¶
func CopyNewtimes ¶
func CopyWithoutHidden ¶
Types ¶
type RemoteFile ¶
type RemoteFile struct {
// contains filtered or unexported fields
}
func (*RemoteFile) IsDir ¶
func (f *RemoteFile) IsDir() bool
func (*RemoteFile) ModTime ¶
func (f *RemoteFile) ModTime() time.Time
func (*RemoteFile) Mode ¶
func (f *RemoteFile) Mode() fs.FileMode
func (*RemoteFile) Name ¶
func (f *RemoteFile) Name() string
func (*RemoteFile) Path ¶
func (f *RemoteFile) Path() string
func (*RemoteFile) Size ¶
func (f *RemoteFile) Size() int64
func (*RemoteFile) Sys ¶
func (f *RemoteFile) Sys() interface{}
Click to show internal directories.
Click to hide internal directories.