Documentation ¶
Index ¶
- func CopyDir(src string, dst string, args ...bool) error
- func CopyFile(src, dst string) error
- func CopyFileExistsSkip(src, dst string) error
- func CreateDirIfNotExist(path string) error
- func CreateFilePath(localPath, fileName string) (string, error)
- func CreateZipFile(source, target string) (err error)
- func GetFileSize(file *os.File) (int64, error)
- func IsDir(path string) bool
- func IsFile(path string) bool
- func IsFileSymlink(file os.FileInfo) bool
- func IsPathSymlink(path string) bool
- func MimeType(path string) (mime string)
- func PathExists(path string) bool
- func Pwd() (string, error)
- func ReadLinesChan(filePath string) (<-chan string, error)
- func ReadLinesSlice(path string) ([]string, error)
- func ReadPropertiesFile(fileName string) (map[string]string, error)
- func ReaderMimeType(r io.Reader) (mime string)
- func TempFileName(prefix string) string
- func WriteLinesSlice(lines []string, path string) error
- type SyncFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFileExistsSkip ¶
func CreateDirIfNotExist ¶
func CreateFilePath ¶
func CreateZipFile ¶
func IsFileSymlink ¶
func IsPathSymlink ¶
func PathExists ¶
func ReadLinesChan ¶
func ReadLinesSlice ¶
func ReaderMimeType ¶
func WriteLinesSlice ¶
Types ¶
type SyncFile ¶
type SyncFile struct {
// contains filtered or unexported fields
}
func NewSyncFile ¶
NewSynchronizedFile synchronizes writing to a writer
Click to show internal directories.
Click to hide internal directories.