sync update from LAN repo (source dhk-1 @ 3e87be55)
This commit is contained in:
1 parent
ab6068a7c1
commit
42f2a26fa8
1482 files changed
+227759
-9584
No files matched your search
@@ -243,8 +243,9 @@ def delete_file_safe(base_dir: Path, filename: str, *, convertible_extensions: s
|
||||
file_path.unlink()
|
||||
|
||||
# Clean up companion markdown generated during upload conversion.
|
||||
if convertible_extensions and file_path.suffix.lower() in convertible_extensions:
|
||||
file_path.with_suffix(".md").unlink(missing_ok=True)
|
||||
if convertible_extensions and file_path.suffix.lower() in convertible_extensions:
|
||||
file_path.with_name(f"{file_path.name}.md").unlink(missing_ok=True)
|
||||
file_path.with_suffix(".md").unlink(missing_ok=True)
|
||||
|
||||
return {"success": True, "message": f"Deleted {filename}"}
|
||||
|
||||
|
||||
Reference in new issue
Block a user