On 03/12/2018 21:55, Jonas Devlieghere via lldb-commits wrote:
That wouldn't work because we try to create the directory which would succeeded in the temp dir. I'd have to be something you don't have access to, like the root or some network drive.


How about we change the behavior to only create the bottommost directory? E.g. if the user specifies "/X/Y/Z" as the path, then "/X/Y" has to exist, and "Z" will be created if not present (i.e. use mkdir, not mkdir -p). I think this is the behavior most users would expect anyway (I would be upset if a typo causes lldb to create a whole hierarchy some place I did not intend), and it will allow to test this via something like "%t/does_not_exist/repro_dir".

pl
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to