[DATA LOSS] Deleting junctions resulted in deletion of junction target contents
Forum rules
READ THIS AND DO IT!!!
Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
-
c0thirty
- Posts: 32
- Joined: 27 Oct 2021 14:28
Re: [DATA LOSS] Deleting junctions resulted in deletion of junction target contents
Windows 10 still natively has bizarre behavior with junctions. Attempting to move or cut/paste a junction using Windows Explorer ends up creating a new non-junction folder, moving all the contents of the original source folder into it, and leaving behind both the original (now empty) folder and the junction linking to it. They're a weird grey area between symlinks and hard links and I'm not sure exactly what safety if any they offer over hard links. In my recent test just now, deleting the junction (whether via recycle bin or permanent delete) rather than moving it didn't delete the source folder's contents, but I'm sure it would have on earlier Windows versions.
-
admin
- Site Admin
- Posts: 66564
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: [DATA LOSS] Deleting junctions resulted in deletion of junction target contents
Yes, in XP deleting the junction meant deleting the original stuff. Horror show. And yes, it's generally a messy area. I never use junctions for my own stuff, I just have them here for testing.
FAQ | XY News RSS | XY X
-
PeterH
- Posts: 2830
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: [DATA LOSS] Deleting junctions resulted in deletion of junction target contents
You know that hardlinks *must* refer to the same disk partition they are in?
-
admin
- Site Admin
- Posts: 66564
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
PeterH
- Posts: 2830
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: [DATA LOSS] Deleting junctions resulted in deletion of junction target contents
I think so. Will go to verify.
-
admin
- Site Admin
- Posts: 66564
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: [DATA LOSS] Deleting junctions resulted in deletion of junction target contents
I meant "So?" in the sense of "So what?"
What's your point?
FAQ | XY News RSS | XY X
-
PeterH
- Posts: 2830
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: [DATA LOSS] Deleting junctions resulted in deletion of junction target contents
c0thirty said: They're a weird grey area between symlinks and hard links and I'm not sure exactly what safety if any they offer over hard links.
I'd say you can't / shouldn't compare these, as hardlinks are different usage as symlinks.
I'd say you can't / shouldn't compare these, as hardlinks are different usage as symlinks.
XYplorer Beta Club