mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Introduced in #3392 (cherry picked from commit 858d48afe7e68f1da28172dd9e08a87bdba1c34c) Co-authored-by: miggland <miggland@users.noreply.github.com>
This commit is contained in:
parent
836ec3289d
commit
951225b420
2
tasks.py
2
tasks.py
@ -264,7 +264,7 @@ def export_records(c, filename='data.json', overwrite=False, include_permissions
|
||||
|
||||
print(f"Exporting database records to file '{filename}'")
|
||||
|
||||
if filename.exists() and overwrite is False:
|
||||
if Path(filename).is_file() and overwrite is False:
|
||||
response = input("Warning: file already exists. Do you want to overwrite? [y/N]: ")
|
||||
response = str(response).strip().lower()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user