Documentation ¶
Index ¶
- Variables
- type Fs
- func (fs *Fs) AppendSlash(path string) string
- func (fs *Fs) CopyFile(src string, dst string) error
- func (fs *Fs) CopyFileEx(src string, dst string, mode os.FileMode) error
- func (fs *Fs) DoesFileExist(fullpath string) bool
- func (fs *Fs) GetFilenameFromURIOrFullPath(path string) string
- func (fs *Fs) GetFullExePath() (string, error)
- func (fs *Fs) GetFullPath() (string, error)
- func (fs *Fs) GetFullPathWithExec() (string, error)
- func (fs *Fs) GetPathFromFullFilename(path string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrSrcNotExist src file doesnt exist ErrSrcNotExist = errors.New("Source file does not exist") //ErrSrcNotRegularFile src file is not a regular file ErrSrcNotRegularFile = errors.New("Source file is not a regular file") //ErrDstNotRegularFile dst file is not a regular file ErrDstNotRegularFile = errors.New("Destination file is not a regular file") )
Functions ¶
This section is empty.
Types ¶
type Fs ¶
type Fs struct{}
Fs is a static class that provides Filesystem type functions
func (*Fs) AppendSlash ¶
AppendSlash appends a slash to a path if one is needed
func (*Fs) CopyFileEx ¶
CopyFileEx copies the contents of the src file to the dst file
func (*Fs) DoesFileExist ¶
DoesFileExist just like it sounds
func (*Fs) GetFilenameFromURIOrFullPath ¶
GetFilenameFromURIOrFullPath retrieves the filename from an URI
func (*Fs) GetFullExePath ¶
GetFullExePath returns the fullpath of the executable including the executable name itself
func (*Fs) GetFullPath ¶
GetFullPath returns the fullpath of the executable without the executable name
func (*Fs) GetFullPathWithExec ¶
GetFullPathWithExec returns the fullpath of the executable
func (*Fs) GetPathFromFullFilename ¶
GetPathFromFullFilename returns the parent folder name
Click to show internal directories.
Click to hide internal directories.