Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > System

filedirectory

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Gets the file directory from a string.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

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

System level, currentfilename, getpath, which, pwd, fileextension, filebasename

Copyright Lumerical Inc. | Privacy | Site Map