From 7b188f27f4882734c3a0a7fb46f0b6f92a10cfc5 Mon Sep 17 00:00:00 2001 From: Yanqiang Miao Date: Thu, 30 Mar 2017 15:41:21 +0800 Subject: [PATCH] Fix a ingest path error Signed-off-by: Yanqiang Miao --- content/store.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content/store.go b/content/store.go index e43dcc3..9fc260d 100644 --- a/content/store.go +++ b/content/store.go @@ -138,13 +138,12 @@ func (cs *Store) Walk(fn WalkFunc) error { }) } -// Stat returns the current status of a blob by the ingest ref. +// Status returns the current status of a blob by the ingest ref. func (s *Store) Status(ref string) (Status, error) { - dp := filepath.Join(s.ingestRoot(ref), "data") - return s.status(dp) + return s.status(s.ingestRoot(ref)) } -// stat works like stat above except uses the path to the ingest. +// status works like stat above except uses the path to the ingest. func (s *Store) status(ingestPath string) (Status, error) { dp := filepath.Join(ingestPath, "data") fi, err := os.Stat(dp)