Dear BaseX team, the documentation states: "Lists all files and directories found in the specified $dir."; however the function does not always return file names.
(1) If parameter $recursive=true, the contents are returned, but not the directories themselves. (2) The call "file:list($dir, false(), '*') does not return directories In case of (1), this behavior may often be desirable, but sometimes not, namely if I want to construct a directory tree. Perhaps a further control option would be worth considering? I am not sure. At any rate, if the present behavior is intended, the documentation should be adapted. (2) seems to me a bug, as the call should be equivalent to a one-parameter call, shouldn't it? With kind regards, Hans-Juergen
_______________________________________________ BaseX-Talk mailing list [email protected] https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

