Documentation ¶
Index ¶
- Variables
- type DirectoryInfo
- func (this *DirectoryInfo) Create() error
- func (this *DirectoryInfo) CreateSubdirectory(path string) (DirectoryInfo, error)
- func (this *DirectoryInfo) Delete() error
- func (this *DirectoryInfo) GetAbsPath() (string, error)
- func (this *DirectoryInfo) GetAllFiles() (Collections.List[string], error)
- func (this *DirectoryInfo) GetDirectories() (Collections.List[DirectoryInfo], error)
- func (this *DirectoryInfo) GetFiles() (Collections.List[FileInfo], error)
- func (this *DirectoryInfo) GetParent() DirectoryInfo
- type DirectoryObj
- func (this *DirectoryObj) Create(path string) error
- func (this *DirectoryObj) CreateSubdirectiry(path string) error
- func (this *DirectoryObj) Delete(path string) error
- func (this *DirectoryObj) DeleteAll(path string) error
- func (this *DirectoryObj) GetDirectories(path string) (Collections.List[string], error)
- func (this *DirectoryObj) GetFiles(path string) (Collections.List[string], error)
- type FileInfo
- func (this *FileInfo) Create() error
- func (this *FileInfo) Delete() error
- func (this *FileInfo) Directory() DirectoryInfo
- func (this *FileInfo) Exists() (bool, error)
- func (this *FileInfo) GetFileChecksum(hash hash.Hash) (string, error)
- func (this *FileInfo) LoadJSON() (interface{}, error)
- func (this *FileInfo) Name() string
- func (this *FileInfo) ReadAllText() (string, error)
- func (this *FileInfo) ReadBytes() ([]byte, error)
- func (this *FileInfo) ReadFileLines() (Collections.List[string], error)
- func (this *FileInfo) WriteAllText(text string) error
- func (this *FileInfo) WriteBytes(data []byte) error
- type PathObj
- func (this *PathObj) Combine(p1 ...string) string
- func (this *PathObj) Exists(path string) (bool, error)
- func (this *PathObj) GetDirectoryParent(path string) string
- func (this *PathObj) GetExtension(path string) string
- func (this *PathObj) GetFileName(path string) string
- func (this *PathObj) GetFullPath(path string) (string, error)
- func (this *PathObj) GetRelativePath(relativeTo string, path string) (string, error)
- func (this *PathObj) IsDirectory(path string) (bool, error)
- func (this *PathObj) IsFile(path string) (bool, error)
- func (this *PathObj) TrimEndingDirectorySeparator(path string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var EXTENSION_SEPARATOR = "."
View Source
var PATH_SEPARATOR = "/"
Functions ¶
This section is empty.
Types ¶
type DirectoryInfo ¶
type DirectoryInfo struct { Path string // contains filtered or unexported fields }
func DirectoryInfo_New ¶
func DirectoryInfo_New(path string) *DirectoryInfo
func (*DirectoryInfo) Create ¶
func (this *DirectoryInfo) Create() error
func (*DirectoryInfo) CreateSubdirectory ¶
func (this *DirectoryInfo) CreateSubdirectory(path string) (DirectoryInfo, error)
func (*DirectoryInfo) Delete ¶
func (this *DirectoryInfo) Delete() error
func (*DirectoryInfo) GetAbsPath ¶
func (this *DirectoryInfo) GetAbsPath() (string, error)
func (*DirectoryInfo) GetAllFiles ¶
func (this *DirectoryInfo) GetAllFiles() (Collections.List[string], error)
func (*DirectoryInfo) GetDirectories ¶
func (this *DirectoryInfo) GetDirectories() (Collections.List[DirectoryInfo], error)
func (*DirectoryInfo) GetFiles ¶
func (this *DirectoryInfo) GetFiles() (Collections.List[FileInfo], error)
func (*DirectoryInfo) GetParent ¶
func (this *DirectoryInfo) GetParent() DirectoryInfo
type DirectoryObj ¶
type DirectoryObj struct{}
var Directory DirectoryObj
func (*DirectoryObj) Create ¶
func (this *DirectoryObj) Create(path string) error
func (*DirectoryObj) CreateSubdirectiry ¶
func (this *DirectoryObj) CreateSubdirectiry(path string) error
func (*DirectoryObj) Delete ¶
func (this *DirectoryObj) Delete(path string) error
func (*DirectoryObj) DeleteAll ¶
func (this *DirectoryObj) DeleteAll(path string) error
func (*DirectoryObj) GetDirectories ¶
func (this *DirectoryObj) GetDirectories(path string) (Collections.List[string], error)
func (*DirectoryObj) GetFiles ¶
func (this *DirectoryObj) GetFiles(path string) (Collections.List[string], error)
type FileInfo ¶
type FileInfo struct {
Path string
}
func FileInfo_New ¶
func (*FileInfo) Directory ¶
func (this *FileInfo) Directory() DirectoryInfo
func (*FileInfo) GetFileChecksum ¶ added in v1.1.7
func (*FileInfo) ReadAllText ¶
func (*FileInfo) ReadFileLines ¶
func (this *FileInfo) ReadFileLines() (Collections.List[string], error)
func (*FileInfo) WriteAllText ¶
func (*FileInfo) WriteBytes ¶
type PathObj ¶
type PathObj struct { }
var Path PathObj
func (*PathObj) GetDirectoryParent ¶
func (*PathObj) GetExtension ¶
func (*PathObj) GetFileName ¶
func (*PathObj) GetRelativePath ¶
func (*PathObj) TrimEndingDirectorySeparator ¶
Click to show internal directories.
Click to hide internal directories.