fix output tmp dir
This commit is contained in:
parent
7a266bafd8
commit
5e553b4a89
@ -45,7 +45,8 @@ func (s *Store) SaveTemp(path string, sumb string, b []byte) error {
|
|||||||
return photoserrors.ErrStoreWrongChecksum
|
return photoserrors.ErrStoreWrongChecksum
|
||||||
}
|
}
|
||||||
|
|
||||||
dir := s.Dir(path, sumString)
|
tmpdir := filepath.Join("tmp", path)
|
||||||
|
dir := s.Dir(tmpdir, sumString)
|
||||||
filename := filepath.Join(dir, sumString)
|
filename := filepath.Join(dir, sumString)
|
||||||
|
|
||||||
if s.FileExists(filename) {
|
if s.FileExists(filename) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user