Documentation
¶
Index ¶
- func CopyFile(source, dest string) error
- func ExtractCompressedFile(source, target string) (string, error)
- func SplitFile(filePath, destPath, partSize string) error
- type OSFS
- func (OSFS) MkdirAll(path string, perm os.FileMode) error
- func (OSFS) MkdirTemp(dir, prefix string) (string, error)
- func (OSFS) ReadFile(name string) ([]byte, error)
- func (OSFS) Remove(name string) error
- func (OSFS) RemoveAll(path string) error
- func (OSFS) Stat(name string) (os.FileInfo, error)
- func (OSFS) UserHomeDir() (string, error)
- func (OSFS) WriteFile(name string, data []byte, perm os.FileMode) error
- type OSInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractCompressedFile ¶
Types ¶
type OSInterface ¶
type OSInterface interface { MkdirTemp(dir, prefix string) (string, error) Stat(name string) (os.FileInfo, error) Remove(name string) error UserHomeDir() (string, error) MkdirAll(path string, perm os.FileMode) error WriteFile(name string, data []byte, perm os.FileMode) error ReadFile(name string) ([]byte, error) RemoveAll(path string) error }
Click to show internal directories.
Click to hide internal directories.