mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 10:21:18 +00:00
1 parent
8ef5d0a159
commit
858d48afe7
1 file changed
+1
-1
@@ -267,7 +267,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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user