On 06/02/12 16:40, Reinier Olislagers wrote:
Busy porting FPCUP to Linux... think it's time to quit for the day....
This code:
OperationSucceeded:=ForceDirectories(BootstrapCompilerDirectory);
debugln('todo: debug: forcedirectories bootstrap compiler dir:
'+bootstrapcompilerdirectory+' result: '+BoolToStr(Operationsucceeded));
should create a directory (~/fpcbootstrap by default):
The output that debugln produces:
Debug: todo: debug: forcedirectories bootstrap compiler dir:
~/fpcbootstrap/ result: -1
Result=-1, so that's true& it must have worked, right?
No, the directory is not created:
pascaldev@debianlaz:~$ ls ~/fpcbootstrap
ls: cannot access /home/pascaldev/fpcbootstrap: No such file or directory
What am I doing wrong?
Should I spell out the entire path /home/pascaldev/fpcbootstrap/? Leave
the trailing slash?
Your shell expands ~ to your home directory. Your program will have to
do this manually (i.e. read the "HOME" environment variable).
Henry
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal