Skip to content

Commit 189475c

Browse files
committed
comment
1 parent aa92d7d commit 189475c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

fastdup/fastdup_controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def _init_run(self, input_dir: Union[str, Path] = None, df_annot: pd.DataFrame =
7777
:param overwrite: overwrite existing fastdup state (delete work_dir)
7878
"""
7979
if overwrite:
80+
# quick fix - to prevent users from deleting their data by mistake
8081
# shutil.rmtree(self._work_dir, ignore_errors=True)
8182
self._fastdup_applied = False
8283

fastdup/fastdup_galleries.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ def _clean_temp_dir(self, save_dir, html_src_path, html_dst_path, lazy_load=Fals
7676
try:
7777
shutil.move(html_src_path, html_dst_path)
7878
except Exception as e:
79+
# quick fix - prevent error when html file is not generated
7980
pass
8081
if not save_artifacts and not lazy_load:
82+
# quick fix - to prevent users from deleting their data by mistake
8183
# shutil.rmtree(save_dir)
8284
pass
8385

0 commit comments

Comments
 (0)