Documentation ¶
Index ¶
- Constants
- type Uploader
- func (u *Uploader) AbsolutePath(path string) string
- func (u *Uploader) AllDirectoryFiles(dir string) ([]contracts.FileInfo, error)
- func (u *Uploader) Delete(path string) error
- func (u *Uploader) DeleteDir(dir string) error
- func (u *Uploader) DirExists(dir string) bool
- func (u *Uploader) DirSize(dir string) (int64, error)
- func (u *Uploader) Disk(s string) contracts.Uploader
- func (u *Uploader) Exists(path string) bool
- func (u *Uploader) MkDir(path string, recursive bool) error
- func (u *Uploader) NewFile(path string) (*os.File, error)
- func (u *Uploader) Put(path string, content io.Reader) (contracts.FileInfo, error)
- func (u *Uploader) RemoveEmptyDir(dir string) error
Constants ¶
View Source
const DefaultRootDir = "/tmp/execit-uploads"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Uploader ¶
type Uploader struct {
// contains filtered or unexported fields
}
func (*Uploader) AbsolutePath ¶
func (*Uploader) AllDirectoryFiles ¶
func (*Uploader) RemoveEmptyDir ¶
Click to show internal directories.
Click to hide internal directories.