Documentation discrepancy present in 10.3 and fixed in 10.4.1
According to the documentation for FileNames
under Details:
However when I attempt to use this syntax I get an error:
FileNames["foo*", "c:\\", {2}]
FileNames::innf: Non-negative integer or Infinity expected at position 3 in FileNames[foo*,c:\,{2}]. >>
I am using Mathematica 10.0.1 under Windows. Does this syntax work on other systems?
FileNames["foo*", "/", {2}]
) Also in MMA 9.0.1.0 Documentation, the curly brackets are missing : !enter image description here $\endgroup$