MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / closeFile

Method closeFile

ij/src/main/java/ij/macro/Functions.java:4749–4758  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4747 }
4748
4749 String closeFile() {
4750 String f = getStringArg();
4751 if (!f.equals("~0~"))
4752 interp.error("Invalid file variable");
4753 if (writer!=null) {
4754 writer.close();
4755 writer = null;
4756 }
4757 return null;
4758 }
4759
4760 public static String copyFile(File f1, File f2) {
4761 return Tools.copyFile(f1.getPath(), f2.getPath());

Callers 1

doFileMethod · 0.95

Calls 4

getStringArgMethod · 0.95
closeMethod · 0.65
equalsMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected