Moving SymLink to Folder - moves contents of target folder
Posted: 13 May 2016 00:14
As it is known SymLink can be created to a folder and to a file.
If we talk about the SymLink to file, the SymLink behavior has no differences from the behavior of the shortcut.
If I will be copy, move, paste or delete SymLink, then will be deleted, pasted, moved and copied exactly SymLink but not object to which it is created.
Well with SymLink to files all is Ok.
Behavior of SymLink to Folder in XYplorer differs from the behavior of shortcut, that was created to folder.
From all actions - "copy, move, paste, delete" - works correctly only deleting.
If you delete SymLink to folder then really is deleted exactly SymLink to folder and not its object - content of Folder.
In all other cases (copy, move, paste), the actions are made NOT with link, but with the object to which this reference refers.
You can create a SymLink to the folder using XYplorer (in this case you will be sure that really was created a SymLink), then call Explorer and move the SymLink.
You will see that Explorer performs this operation correctly: it moves symlink to folder rather than its content.
By correcting this error, it is necessary to take into account the nuances.
For example, if you create the archive from a SymLink to folder, then will be created (zip, 7z, rar)-archive, where instead of a SymLink, in archive will be the target folder with its contents.
Added:
Probably it is necessary to tell that this bug exists from the very beginning of opportunity to create SymLink.
But in the beginning I saw only that only deleting of SymLink works incorrectly, and after it this bug was corrected.
Now it is time to correct also bug of SymLink to Folder by "copy, move, paste" of SymLink.
If we talk about the SymLink to file, the SymLink behavior has no differences from the behavior of the shortcut.
If I will be copy, move, paste or delete SymLink, then will be deleted, pasted, moved and copied exactly SymLink but not object to which it is created.
Well with SymLink to files all is Ok.
Behavior of SymLink to Folder in XYplorer differs from the behavior of shortcut, that was created to folder.
From all actions - "copy, move, paste, delete" - works correctly only deleting.
If you delete SymLink to folder then really is deleted exactly SymLink to folder and not its object - content of Folder.
In all other cases (copy, move, paste), the actions are made NOT with link, but with the object to which this reference refers.
You can create a SymLink to the folder using XYplorer (in this case you will be sure that really was created a SymLink), then call Explorer and move the SymLink.
You will see that Explorer performs this operation correctly: it moves symlink to folder rather than its content.
By correcting this error, it is necessary to take into account the nuances.
For example, if you create the archive from a SymLink to folder, then will be created (zip, 7z, rar)-archive, where instead of a SymLink, in archive will be the target folder with its contents.
Added:
Probably it is necessary to tell that this bug exists from the very beginning of opportunity to create SymLink.
But in the beginning I saw only that only deleting of SymLink works incorrectly, and after it this bug was corrected.
Now it is time to correct also bug of SymLink to Folder by "copy, move, paste" of SymLink.