<div dir="ltr">On Mon, Feb 6, 2012 at 18:40, Reinier Olislagers <span dir="ltr"><<a href="mailto:reinierolislagers@gmail.com">reinierolislagers@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Busy porting FPCUP to Linux... think it's time to quit for the day....<br>
<br>
This code:<br>
OperationSucceeded:=ForceDirectories(BootstrapCompilerDirectory);<br>
debugln('todo: debug: forcedirectories bootstrap compiler dir:<br>
'+bootstrapcompilerdirectory+' result: '+BoolToStr(Operationsucceeded));<br>
<br>
should create a directory (~/fpcbootstrap by default):<br>
The output that debugln produces:<br>
Debug: todo: debug: forcedirectories bootstrap compiler dir:<br>
~/fpcbootstrap/ result: -1<br>
<br>
Result=-1, so that's true & it must have worked, right?<br>
<br>
No, the directory is not created:<br>
pascaldev@debianlaz:~$ ls ~/fpcbootstrap<br>
ls: cannot access /home/pascaldev/fpcbootstrap: No such file or directory<br>
<br>
<br>
What am I doing wrong?<br>
Should I spell out the entire path /home/pascaldev/fpcbootstrap/? Leave<br></blockquote><div><br>You should use ExpandFileName on ForceDirectory's content prior on sending it to it.<br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
the trailing slash?<br>
<br>
Thanks for any tips,<br>
Reinier<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div><br><br></div>