return "".equals(result.trim()) ? defaultDirectory : new SystemDirectory(result);
}
public SystemFile getFile(String prompt, SystemFile defaultFile) {
String result = this.captureRawInput(prompt + (defaultFile != null ? "[default=" + defaultFile.getPath().toString("/") + "]" : "") + ": ");
return "".equals(result.trim()) ? defaultFile : new SystemFile(result);
}