phobo's std.file is completely broke!

Andre Pany andre at s-e-a-p.de
Fri Sep 14 19:37:49 UTC 2018


On Friday, 14 September 2018 at 19:06:14 UTC, Josphe Brigmo wrote:
> For very long file names it is broke and every command fails. 
> These paths are not all that long but over 256 limit. (For 
> windows)
>
> The problem this causes can be disastrous. If some check fails 
> and runs code that isn't mean to run if the file exists, it 
> could destroy data.
>
>
> I replaced many of the std.file functions with 
> executeShell(...) and using command line functions and they 
> work. But then my code was still failing and it was because 
> exist was returning false even though the file exists.
>
> I'm sure this is not a big deal to some...

Without knowing the issue in detail, is this maybe related to 
https://www.google.de/amp/s/www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/amp/ ?

Kind regards
Andre



More information about the Digitalmars-d mailing list