fix output tmp dir

This commit is contained in:
celogeek 2022-03-02 16:32:55 +01:00
parent 7a266bafd8
commit 5e553b4a89
Signed by: celogeek
GPG Key ID: E6B7BDCFC446233A

View File

@ -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) {