 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package fs interace and implementations used by storage/filesystem
Index ¶
- Variables
- type BaseFile
- type File
- type FileInfo
- type Filesystem
- type OS
- func (fs *OS) Base() string
- func (fs *OS) Create(filename string) (File, error)
- func (fs *OS) Dir(path string) Filesystem
- func (fs *OS) Join(elem ...string) string
- func (fs *OS) Open(filename string) (File, error)
- func (fs *OS) ReadDir(path string) ([]FileInfo, error)
- func (fs *OS) Rename(from, to string) error
- func (fs *OS) Stat(filename string) (FileInfo, error)
- func (fs *OS) TempFile(dir, prefix string) (File, error)
 
- type OSFile
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BaseFile ¶
type BaseFile struct {
	// contains filtered or unexported fields
}
    type Filesystem ¶
type Filesystem interface {
	Create(filename string) (File, error)
	Open(filename string) (File, error)
	Stat(filename string) (FileInfo, error)
	ReadDir(path string) ([]FileInfo, error)
	TempFile(dir, prefix string) (File, error)
	Rename(from, to string) error
	Join(elem ...string) string
	Dir(path string) Filesystem
	Base() string
}
    type OS ¶
type OS struct {
	// contains filtered or unexported fields
}
    OS a filesystem base on the os filesystem
func (*OS) Dir ¶
func (fs *OS) Dir(path string) Filesystem
Dir returns a new Filesystem from the same type of fs using as baseDir the given path
func (*OS) Open ¶
Open opens the named file for reading. If successful, methods on the returned file can be used for reading only.
func (*OS) ReadDir ¶
ReadDir returns the filesystem info for all the archives under the specified path.
 Click to show internal directories. 
   Click to hide internal directories.