Documentation ¶
Index ¶
- Constants
- Variables
- func CombinPath(elements ...string) string
- func CopyFile(srcName, destName string) (int64, error)
- func FileExists(fullPath string) bool
- func GetFileSize(filename string) (bool, int64)
- func Home() (string, error)
- func IsDir(dir string) bool
- func IsFile(filename string) bool
- func LockFile(file string) bool
- func MakeDirP(dir string) error
- func RemoveFile(fullPath string) bool
- func SymLink(srcName, destName string) error
- func UnlockFile(file string) bool
- func WalkDir(dir string, fn func(*File)) error
- type File
Constants ¶
View Source
const ( ReadMode = 0444 WriteMode = 0222 ReadWriteMode = 0666 CommonMode = 0766 FullMode = 0777 )
Variables ¶
View Source
var (
// ROOT indicates the root of current app.
ROOT = "/"
)
Functions ¶
func CombinPath ¶
CombinPath combins all paramters to whole path.
func GetFileSize ¶
GetFileSize returns bytes of file.
func UnlockFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.