MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / deleteFileIfEmpty

Method deleteFileIfEmpty

src/tsd/GraphHandler.java:902–907  ·  view source on GitHub ↗
(final String path)

Source from the content-addressed store, hash-verified

900 }
901
902 private static void deleteFileIfEmpty(final String path) {
903 final File file = new File(path);
904 if (file.length() <= 0) {
905 file.delete();
906 }
907 }
908
909 /**
910 * Respond to a query that wants the output in ASCII.

Callers 1

runGnuplotMethod · 0.95

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected