Gets the file directory from a string.
Syntax |
Description |
---|---|
out = filedirectory( "location/filename.ext" ); |
Returns the file directory as a string. |
Examples
Isolates the file directory from the full filename.
?filedirectory("C:\Users\myname\Documents\FDTD Files\test.fsp"); C:/Users/myname/Documents/FDTD Files
See Also
List of commands , currentfilename , getpath , which , pwd , fileextension , filebasename