Versions in this module Expand all Collapse all v1 v1.1.14 Aug 21, 2018 Changes in this version + var ErrNotDirectory = errors.New("Couldn't call NextFile(), this isn't a directory") + var ErrNotReader = errors.New("This file is a directory, can't use Reader functions") + func IsHidden(f File) bool + type File interface + FileName func() string + FullPath func() string + IsDirectory func() bool + NextFile func() (File, error) + func NewFileFromPart(part *multipart.Part) (File, error) + func NewLinkFile(name, path, target string, stat os.FileInfo) File + func NewSerialFile(name, path string, hidden bool, stat os.FileInfo) (File, error) + type FileInfo interface + AbsPath func() string + Stat func() os.FileInfo + type MultiFileReader struct + func NewMultiFileReader(file File, form bool) *MultiFileReader + func (mfr *MultiFileReader) Boundary() string + func (mfr *MultiFileReader) Read(buf []byte) (written int, err error) + type MultipartFile struct + Mediatype string + Part *multipart.Part + Reader *multipart.Reader + func (f *MultipartFile) Close() error + func (f *MultipartFile) FileName() string + func (f *MultipartFile) FullPath() string + func (f *MultipartFile) IsDirectory() bool + func (f *MultipartFile) NextFile() (File, error) + func (f *MultipartFile) Read(p []byte) (int, error) + type PeekFile interface + Length func() int + Peek func(n int) File + type ReaderFile struct + func NewReaderFile(filename, path string, reader io.ReadCloser, stat os.FileInfo) *ReaderFile + func NewReaderPathFile(filename, path string, reader io.ReadCloser, stat os.FileInfo) (*ReaderFile, error) + func (f *ReaderFile) AbsPath() string + func (f *ReaderFile) Close() error + func (f *ReaderFile) FileName() string + func (f *ReaderFile) FullPath() string + func (f *ReaderFile) IsDirectory() bool + func (f *ReaderFile) NextFile() (File, error) + func (f *ReaderFile) Read(p []byte) (int, error) + func (f *ReaderFile) Size() (int64, error) + func (f *ReaderFile) Stat() os.FileInfo + type SizeFile interface + Size func() (int64, error) + type SliceFile struct + func NewSliceFile(filename, path string, files []File) *SliceFile + func (f *SliceFile) Close() error + func (f *SliceFile) FileName() string + func (f *SliceFile) FullPath() string + func (f *SliceFile) IsDirectory() bool + func (f *SliceFile) Length() int + func (f *SliceFile) NextFile() (File, error) + func (f *SliceFile) Peek(n int) File + func (f *SliceFile) Read(p []byte) (int, error) + func (f *SliceFile) Size() (int64, error) + type StatFile interface + Stat func() os.FileInfo + type Symlink struct + Target string + func (f *Symlink) Close() error + func (f *Symlink) FileName() string + func (f *Symlink) FullPath() string + func (f *Symlink) Read(b []byte) (int, error) + func (lf *Symlink) IsDirectory() bool + func (lf *Symlink) NextFile() (File, error) + type WebFile struct + func NewWebFile(url *url.URL) *WebFile + func (wf *WebFile) Close() error + func (wf *WebFile) FileName() string + func (wf *WebFile) FullPath() string + func (wf *WebFile) IsDirectory() bool + func (wf *WebFile) NextFile() (File, error) + func (wf *WebFile) Read(b []byte) (int, error)