public void setHeadlessImportDirectory(String importDir)
			throws ImproperUseException, IOException, InvalidNameException {
		checkHeadlessStatus();

		// Do nothing if not importing -- we don't want to have arbitrary folders
		// created when not being used!

		if (!headless.getOptions().runScriptsNoImport) {
			DomainFolder saveFolder = null;

			if (importDir != null) {

				if (!importDir.startsWith("/")) {
					importDir = "/" + importDir;
				}

				// Add ending slash so the dir gets created for server projects
				if (!importDir.endsWith("/")) {
					importDir += "/";
				}

				// Gets folder -- creates path if it doesn't already exist
				saveFolder = headless.getDomainFolder(importDir, true);
			}

			headless.setSaveFolder(saveFolder);
		}
	}
Changes the path <i>in the Ghidra project</i> where imported files are saved. 
The passed-in path is assumed to be relative to the project root. For example,
if the directory structure for the Ghidra project looks like this:

<pre>
		MyGhidraProject:
		  /dir1
		    /innerDir1
		    /innerDir2
</pre>

Then the following usage would ensure that any files imported after this call would
be saved in the <code>MyGhidraProject:/dir1/innerDir2</code> folder.
<pre>
		setHeadlessImportDirectory("dir1/innerDir2");
</pre>
In contrast, the following usages would add new folders to the Ghidra project and save
the imported files into the newly-created path:
<pre>
		setHeadlessImportDirectory("innerDir2/my/folder");
</pre>
changes the directory structure to:
<pre>
		MyGhidraProject:
		  /dir1
		    /innerDir1
		    /innerDir2
		      /my
		        /folder
</pre>
and:
<pre>
		setHeadlessImportDirectory("newDir/saveHere");
</pre>
changes the directory structure to:
<pre>
		MyGhidraProject:
		  /dir1
		    /innerDir1
			/innerDir2
		  /newDir
		    /saveHere
</pre>
As in the examples above, if the desired folder does not already exist, it is created.
<p>
A change in the import save folder will persist throughout the current HeadlessAnalyzer 
session, unless changed again (in other words, once the import directory has been changed, 
it will remain the 'save' directory for import files in the current session, unless changed).
<p>
To revert back to the default import location (that which was specified via command line),
pass the null object as the argument to this method, as below:
<pre>
		setHeadlessImportDirectory(null);	// Sets import save directory to default
</pre>
If a file with the same name already exists in the desired location, it will only be 
overwritten if "-overwrite" is true.
<p>
This method is only applicable when using the HeadlessAnalyzer <code>-import</code> mode and 
is ineffective in <code>-process</code> mode.

@param importDir  the absolute path (relative to root) where inputs will be saved
@throws ImproperUseException if not in headless mode or headless instance not set	 
@throws IOException if there are issues creating the folder
@throws InvalidNameException if folder name is invalid
Ghidra/Features/Base/src/main/java/ghidra/app/util/headless/HeadlessScript.java