Merge pull request #670 from miaoyq/fix-ingest-path-err
Fix a ingest path error
This commit is contained in:
commit
b488d4d7e2
1 changed files with 3 additions and 4 deletions
|
@ -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) {
|
func (s *Store) Status(ref string) (Status, error) {
|
||||||
dp := filepath.Join(s.ingestRoot(ref), "data")
|
return s.status(s.ingestRoot(ref))
|
||||||
return s.status(dp)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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) {
|
func (s *Store) status(ingestPath string) (Status, error) {
|
||||||
dp := filepath.Join(ingestPath, "data")
|
dp := filepath.Join(ingestPath, "data")
|
||||||
fi, err := os.Stat(dp)
|
fi, err := os.Stat(dp)
|
||||||
|
|
Loading…
Reference in a new issue