|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
FileNameDepth
FileNameDepth["file"]
gives the number of path elements in the file name
.
Details and OptionsDetails and Options
- FileNameDepth["a/b/c"] gives
. - FileNameDepth by default assumes pathname separators and other conventions suitable for your operating system.
- FileNameDepth[..., OperatingSystem->"os"] uses the conventions of the specified operating system. Possible choices are
,
, and
. - FileNameDepth just operates on names of files; it does not actually search for the file specified.
New in 7
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
