Last active
January 19, 2022 22:39
-
-
Save chrisgrande/c4feedcf02b0a9677e540babd91f627e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
from pathlib import Path | |
import sys | |
home_folder = Path.home() | |
relocated_items_symlink = Path(f"{home_folder}/Desktop/Relocated Items.nosync") | |
if relocated_items_symlink.exists(): | |
if os.path.islink(relocated_items_symlink): | |
os.remove(relocated_items_symlink) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment