[fpc-pascal] Fp-Doc. Question No.1

Vincent Snijders vsnijders at quicknet.nl
Tue May 23 10:19:11 CEST 2006


Tiziano - Mekar Srl - schreef:
> I'm using Windows XP (HE) Lazarus 0.9.14 with FPC 2.0.2
> 
> After reading the recent threads in the Lazarus mailing list, I realized
> that I should study how Fp-Doc works. 
> 
> this is the first command I tried:
> 
> C:\lazarus\pp\bin\i386-win32\fpdoc --package=test --input=test.pas
> 
> and this was the output:
> 
> FPDoc - Free Pascal Documentation Tool
> (c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther,
> sg at freepascal.org
> 
> Writing 112 pages...
> Could not create file "test\index-1.html": Access denied
> Could not create file "test\index-2.html": Access denied
> Could not create file "test\versione.html": Access denied
> .......
> Could not create file "test\arc_sen.html": Access denied
> Could not create file "test\arc_cos.html": Access denied
> Done.
> 
> I looked in the fp-doc sources and tried to fix the problem: 
> 
> patch in dw_html.pp:
> --------------------------
> //  if not FileExists(Path) then		old
>   if not DirectoryExists(Path) then		new
>   begin
>     CreatePath(Path);
>     MkDir(Path);
>   end;
> 
> now it is working ok. But I don't know if the reason is:
> 
> a) Fileexists non more works on directories, only on files
> b) Fileexists works on Linux but not on Windows
> 
> someone could give me an advice?

FileExists should not be used for directories. On linux you can get away with it.

Vincent.



More information about the fpc-pascal mailing list