Documentation ¶
Index ¶
- func CopyToTempFile(src io.Reader) (*os.File, error)
- func CreateFileIfNotExist(f string) (*os.File, error)
- func GetOrgSpace(path string) (string, string)
- func Tar(src string, writers ...io.Writer) error
- func Untar(dst string, r io.Reader) error
- type FileDescriptor
- type FileSystemHelper
- func (h FileSystemHelper) Create(name string) (*os.File, error)
- func (h FileSystemHelper) Exists(path string) (bool, error)
- func (h FileSystemHelper) IsEmpty(name string) (bool, error)
- func (h FileSystemHelper) Mkdir(dir string) error
- func (h FileSystemHelper) Open(name string) (*os.File, error)
- func (h FileSystemHelper) Rename(re *regexp.Regexp, dir string, newName string) error
- func (h FileSystemHelper) Tar(src string, writers ...io.Writer) error
- func (h FileSystemHelper) Untar(dst string, r io.Reader) error
- type FileSystemOperations
- type InvalidFileExtensionError
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrgSpace ¶
Types ¶
type FileDescriptor ¶
func NewFileDescriptor ¶
func NewFileDescriptor(path string) (FileDescriptor, error)
type FileSystemHelper ¶
type FileSystemHelper struct{}
func NewFileSystemHelper ¶
func NewFileSystemHelper() FileSystemHelper
func (FileSystemHelper) Mkdir ¶
func (h FileSystemHelper) Mkdir(dir string) error
type FileSystemOperations ¶
type FileSystemOperations interface { Mkdir(dir string) error IsEmpty(name string) (bool, error) Exists(path string) (bool, error) Open(name string) (*os.File, error) Create(name string) (*os.File, error) Tar(src string, writers ...io.Writer) error Untar(dst string, r io.Reader) error Rename(re *regexp.Regexp, dir string, newName string) error }
type InvalidFileExtensionError ¶
type InvalidFileExtensionError struct {
Ext string
}
func (*InvalidFileExtensionError) Error ¶
func (e *InvalidFileExtensionError) Error() string
Click to show internal directories.
Click to hide internal directories.