Skip to content

Instantly share code, notes, and snippets.

@fishyer
Created August 30, 2022 15:53
Show Gist options
  • Save fishyer/703201ad7341da856668fface80b97c0 to your computer and use it in GitHub Desktop.
Save fishyer/703201ad7341da856668fface80b97c0 to your computer and use it in GitHub Desktop.
import os,shutil
src=r"D:\Dropbox\MyObsidian\MyLogNote\share"
backup=r"D:\Dropbox\share-backup"
dest=r"D:\Dropbox\MyLogseq\share"
if os.path.exists(backup):
shutil.rmtree(backup)
shutil.move(dest,backup)
shutil.copytree(src,dest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment