Recent

Author Topic: FileExists function  (Read 337 times)

CodeZulu

  • Newbie
  • Posts: 4
FileExists function
« 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.


Jonas Maebe

  • Hero Member
  • *****
  • Posts: 670
Re: FileExists function
« Reply #1 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.

CodeZulu

  • Newbie
  • Posts: 4
Re: FileExists function
« Reply #2 on: May 30, 2019, 01:27:58 pm »
Solved!! Thank you Jonas. What caught me out is that Nemo displays 'home' as 'Home'.  :D