0

I am executing the following XQuery code on BaseX 7.9 and the result is false even when I know it is a file (the dots are an abbreviation).

file:is-file("C:\Users\...\books2.xml")

According to http://docs.basex.org/wiki/File_Module#file:is-file I should be receiving true.

popen_2
  • 43
  • 5
  • Is this the full path you're testing with, or did you abbreviate/anonymize it (which I'm pretty sure of). Please _always_ post code that produces the failure, read [ask] and [how to post an SSCCE](http://www.sscce.org). Did you also check that BaseX has read permissions on the file, what happens if you use `doc(...)` with the path you're using? – Jens Erat Sep 07 '14 at 08:53
  • It is an abbreviation to anonymize it, indeed. – popen_2 Sep 09 '14 at 00:27
  • Does it work with other files? What do these functions return for this file: file:exists, file:is-dir? – lagivan Sep 15 '14 at 10:26

0 Answers0