Skip to content

Commit

Permalink
Merge pull request #209 from lsst-sqre/u/fe/3
Browse files Browse the repository at this point in the history
Change file deletion icon to trashcan
  • Loading branch information
jonathansick authored Jan 2, 2024
2 parents df87f70 + 0420895 commit a29caed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog.d/20240102_155845_jsick_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Bug fixes

- In `documenteer technote migrate`, change the icon for a file deletion event from ❌ to 🗑️.
4 changes: 2 additions & 2 deletions src/documenteer/services/technotemigration.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ def _delete_file(self, path: Path) -> None:
"""Delete a file."""
if path.exists():
path.unlink()
print(f" {path}")
print(f"🗑️ {path}")

def _delete_directory(self, path: Path) -> None:
"""Delete a directory."""
if path.exists():
shutil.rmtree(path)
print(f" {path}")
print(f"🗑️ {path}")

0 comments on commit a29caed

Please sign in to comment.