Renames ResumeWritePosition to CurrentSize in storage driver api

This commit is contained in:
Brian Bland 2014-11-07 12:58:48 -08:00
parent abdf927c40
commit cb1bdacbe3
8 changed files with 24 additions and 24 deletions

View file

@ -98,7 +98,7 @@ func (d *FilesystemDriver) ReadStream(path string, offset uint64) (io.ReadCloser
func (d *FilesystemDriver) WriteStream(subPath string, offset, size uint64, reader io.ReadCloser) error {
defer reader.Close()
resumableOffset, err := d.ResumeWritePosition(subPath)
resumableOffset, err := d.CurrentSize(subPath)
if _, pathNotFound := err.(storagedriver.PathNotFoundError); err != nil && !pathNotFound {
return err
}
@ -154,7 +154,7 @@ func (d *FilesystemDriver) WriteStream(subPath string, offset, size uint64, read
return err
}
func (d *FilesystemDriver) ResumeWritePosition(subPath string) (uint64, error) {
func (d *FilesystemDriver) CurrentSize(subPath string) (uint64, error) {
fullPath := d.subPath(subPath)
fileInfo, err := os.Stat(fullPath)