typo
This commit is contained in:
@@ -52,6 +52,7 @@ func (s *StorageService) Move(src_abs_path string, dest_abs_path string) error {
|
||||
return responseErrors.ErrFileDoesNotExist
|
||||
}
|
||||
|
||||
_, err = s.storageRepo.EntryInfo(dest_abs_path)
|
||||
if err == nil {
|
||||
return responseErrors.ErrNameTaken
|
||||
} else if os.IsNotExist(err) {
|
||||
@@ -66,6 +67,7 @@ func (s *StorageService) Copy(src_abs_path string, dest_abs_path string) error {
|
||||
return responseErrors.ErrFileDoesNotExist
|
||||
}
|
||||
|
||||
_, err = s.storageRepo.EntryInfo(dest_abs_path)
|
||||
if err == nil {
|
||||
return responseErrors.ErrNameTaken
|
||||
} else if os.IsNotExist(err) {
|
||||
|
||||
Reference in New Issue
Block a user