phobo's std.file is completely broke!

Vladimir Panteleev thecybershadow.lists at gmail.com
Thu Sep 20 03:45:07 UTC 2018


On Thursday, 20 September 2018 at 03:23:36 UTC, Nick Sabalausky 
(Abscissa) wrote:
> (Not on a Win box at the moment.)

I added the output of my test program to the gist:
https://gist.github.com/CyberShadow/049cf06f4ec31b205dde4b0e3c12a986#file-output-txt

> assert( dir.toAbsolutePath.length > MAX_LENGTH-12 );

Actually it's crazier than that. The concatenation of the current 
directory plus the relative path must be < MAX_PATH (approx.). 
Meaning, if you are 50 directories deep, a relative path starting 
with 50 `..\` still won't allow you to access C:\file.txt.



More information about the Digitalmars-d mailing list