Live data from Hacker News

Symlinks in Windows 10

blogs.windows.com

1–10 of 17 posts

Re: Symlinks in Windows 10

#4

Can we get file deletion in windows without raising an error because the file happens to be opened by some program?

Not without breaking every program under the sun. Currently, programs on Windows can assume that the file associated with a path won't change while the file is open (at least I hope so or some of my code is a bit racy...).

Re: Symlinks in Windows 10

#5

Can we get file deletion in windows without raising an error because the file happens to be opened by some program?

Not without breaking every program under the sun. Currently, programs on Windows can assume that the file associated with a path won't change while the file is open (at least I hope so or some of my code is a bit racy...).

Same goes for directories, yeah. The linux approach can create some really bad user experiences and weird bugs. It's sysadmin-friendly but no good for regular people.

Re: Symlinks in Windows 10

#6

Can we get file deletion in windows without raising an error because the file happens to be opened by some program?

there are myriad other reasons files won't delete on Windows that are super annoying ("system file"? Etc)

Re: Symlinks in Windows 10

#7

Can we get file deletion in windows without raising an error because the file happens to be opened by some program?

That… seems like probably a mistake, partly because of existing programs and also because it's not too clear what the correct behavior is there. Yes it's annoying, but I think it's also probably the least surprising behavior.

Re: Symlinks in Windows 10

#8

Can we get file deletion in windows without raising an error because the file happens to be opened by some program?

Not without breaking every program under the sun. Currently, programs on Windows can assume that the file associated with a path won't change while the file is open (at least I hope so or some of my code is a bit racy...).

Perhaps a Copy On Write scheme could work?
Post reply on HN