package swarm import "time" type swarmFile struct{} // Path provides the full path of the target of this file info. func (f *swarmFile) Path() string { return "" } // Size returns current length in bytes of the file. The return value can // be used to write to the end of the file at path. The value is // meaningless if IsDir returns true. func (f *swarmFile) Size() int64 { return 0 } // ModTime returns the modification time for the file. For backends that // don't have a modification time, the creation time should be returned. func (f *swarmFile) ModTime() time.Time { return time.Now() } // IsDir returns true if the path is a directory. func (f *swarmFile) IsDir() bool { return false }