浏览代码

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)