[fpc-pascal] Re: Too tired? Forcedirectories does not seem to work

Reinier Olislagers reinierolislagers at gmail.com
Mon Feb 6 18:37:36 CET 2012


On 6-2-2012 18:01, Henry Vermaak wrote:
> On 06/02/12 16:50, Henry Vermaak wrote:
>>
>> Your shell expands ~ to your home directory. Your program will have to
>> do this manually (i.e. read the "HOME" environment variable).
> 
> Like Ido mentioned, ExpandFileName does this already.  Perhaps the
> documentation could mention it.
> 
> Henry

Tried to add some remarks using fpdoc editor. svn diff gave a huge list
of changes against svn...
ForceDirectories: description
<p>
Note: this function only accepts absolute directories. E.g. on Unix,
directories starting with ~ or .. need to be expanded to absolute
directories first (e.g. using
  <link id="ExpandFileName"/>)</p>

ExpandFileName: description
  <p>
On Unix/Linux systems, this will also expand directories with ~ (the
home directory) to the full, absolute path.</p>

Giving up for now...

Thanks for all the help,
Reinier




More information about the fpc-pascal mailing list