Lazarus

Free Pascal => General => Topic started by: CodeZulu on May 30, 2019, 12:35:36 pm

Title: FileExists function
Post by: CodeZulu on May 30, 2019, 12:35:36 pm
Hi
Using Lazarus on Linux Mint. I am experimenting with a simple program to test the FileExists function. Program running from /Home/Code/Test folder. FileExists('/Home/oscar/Archives/test.txt') returns false. The file definitely exists. Is there something wrong with the way I specified the full path to the file test.txt?
Help appreciated.
Thank you.

Title: Re: FileExists function
Post by: Jonas Maebe on May 30, 2019, 12:47:02 pm
Are you sure it's not /home instead of /Home? By default, file systems are case-sensitive under Linux.
Title: Re: FileExists function
Post by: CodeZulu on May 30, 2019, 01:27:58 pm
Solved!! Thank you Jonas. What caught me out is that Nemo displays 'home' as 'Home'.  :D