소스 검색

fix: override should be handled at the top level

trgiangdo 1 년 전
부모
커밋
38b0195740
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      taipy/core/_repository/_filesystem_repository.py

+ 0 - 3
taipy/core/_repository/_filesystem_repository.py

@@ -131,9 +131,6 @@ class _FileSystemRepository(_AbstractRepository[ModelType, Entity]):
             export_dir.mkdir(parents=True)
 
         export_path = export_dir / f"{entity_id}.json"
-        # Delete if exists.
-        if export_path.exists():
-            export_path.unlink()
 
         shutil.copy2(self.__get_path(entity_id), export_path)