this post was submitted on 20 Jan 2025
1117 points (99.2% liked)

Programmer Humor

20024 readers
1563 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments

symlinks (or whatever windows calls them)

Windows actually has two types of symlinks:

  • Shortcuts: stored as regular files on disk; only function as a symlink from Explorer.
  • Actual symlinks: stored as actual symlinks (or NTFS reparse points). Transparent for all apps, but can only be created using mklink.
  • There's also junction links apparently, but afaik they're just bindmounts.

moving a symlink can sometimes move all the data too.

Probably, someone managed to create a real symlink in their OneDrive folder, and since OneDrive probably doesn't check for symlinks it blindly copied all the files to the cloud.

Take all this with a grain of salt โ€” I'm not a Microsoft developer, and it's been a while since I last used Windows.