[filesystem] Management of junction on Windows is broken
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:
I will add more suggestions in a next message because there is no
consistency between boost and MSVC approach. I don't know the last c++
specifications but it shouldn't be difficult to have a simple approach;