I think I am doing this all wrong but if I am in directory foo/
which is a child of bar/
and I do:
File.exists?(../somefile.rb)
it returns false, when it should be true ... unless I am doing it wrong:
bar/
somefile.rb
foo/
someotherfile.rb
someotherfile.rb
is the one with the code to check if somefile.rb
exists.
What am I doing wrong - I am trying to see if it exists, so I can open it.