Skip to content

Instantly share code, notes, and snippets.

@emchateau
Created February 18, 2014 11:56
Show Gist options
  • Save emchateau/9069589 to your computer and use it in GitHub Desktop.
Save emchateau/9069589 to your computer and use it in GitHub Desktop.
List all files in the directory of your query file in BaseX
(: list all files in the directory of your query file in BaseX :)
let $dir := file:parent(static-base-uri())
for $file in file:list($dir)
return $dir || $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment