Skip to content

Instantly share code, notes, and snippets.

#include "stdafx.h"
#include <utility>
#include <chrono>
#include <vector>
#include <algorithm>
#include <iostream>
#include <future>
#include <atomic>
#include <thread>
@wuye9036
wuye9036 / SymCopy.py
Created December 1, 2021 21:24
Create a sym copy of OneDrive that don't touch the on-cloud files.
import pathlib
import winerror
import os
import ctypes
from ctypes import windll, wintypes
kernel32 = windll.kernel32
def GetCompressedFileSize (filepath):
hi = wintypes.DWORD ()