You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am bit disappointed to see that symlink and junctions are still not really properly handled on Windows with boost (and even with standard MS libs but that's another story.)
First my environment: Windows 10, VS2019 16.3.7, boost 1.71 (static, x64).
I would like to write a small c++ utility that does not use os dependent code to handle files so filesystem seems a good candidate.
Here is what I am doing on Windows:
cd "C:\Users\Vincent\AppData\Roaming\Apple Computer\MobileSync"
mklink /j Backup E:\Backup
So basically I am creating inside C:..\MobileSync a junction folder that points to my second harddisk E:\Backup
Then I am checking that Windows recognize it by entering dir command:
This bug was originally posted on boost-users mailing list on 06th November 2019 but since there is no answer I am reporting the bug here:
http://boost.2283326.n4.nabble.com/filesystem-Management-of-junction-on-Windows-is-broken-and-api-is-inconsistent-td4710249.html
I am bit disappointed to see that symlink and junctions are still not really properly handled on Windows with boost (and even with standard MS libs but that's another story.)
First my environment: Windows 10, VS2019 16.3.7, boost 1.71 (static, x64).
I would like to write a small c++ utility that does not use os dependent code to handle files so filesystem seems a good candidate.
Here is what I am doing on Windows:
cd "C:\Users\Vincent\AppData\Roaming\Apple Computer\MobileSync"
mklink /j Backup E:\Backup
So basically I am creating inside C:..\MobileSync a junction folder that points to my second harddisk E:\Backup
Then I am checking that Windows recognize it by entering dir command:
01/11/2019 23:48
.01/11/2019 23:48 ..
01/11/2019 23:29 Backup [E:\Backup]
0 fichier(s) 0 octets
3 Rép(s) 59 393 630 208 octets libres
As you can see I have a junction targeting E:\Backup, so now let's see what happens with boost:
When I display the content of pathTarget I have Backup...
I might not understand anything about junction but is it not supposed to return E:\Backup ??
When I look at source code I can see the following lines:
This is wrong since we need to distinguish between a symlink and a junction folder so here is my contribution :
The text was updated successfully, but these errors were encountered: