Skip to content

Commit 2317836

Browse files
committed
BUG: escape quotes in the destination dir
1 parent 9d905f9 commit 2317836

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

idc_index/index.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ def _check_create_directory(download_dir):
315315
download_dir = Path(download_dir)
316316
download_dir.mkdir(parents=True, exist_ok=True)
317317

318-
return str(download_dir.resolve())
318+
download_dir = str(download_dir.resolve()).replace("'","''")
319+
320+
return download_dir
319321

320322
def _check_disk_size_and_warn(self, download_dir, disk_size_needed):
321323
disk_free_space_MB = psutil.disk_usage(download_dir).free / (1000 * 1000)

0 commit comments

Comments
 (0)