MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / getContents

Method getContents

src/org/opensourcephysics/tools/JarTool.java:878–883  ·  view source on GitHub ↗

Returns all the files under a given directory @param directory File @return ArrayList

(File directory)

Source from the content-addressed store, hash-verified

876 * @return ArrayList
877 */
878 static public java.util.Collection<File> getContents(File directory) {
879 if (directory.exists() && directory.isDirectory()) {
880 return recursiveGetDirectory(directory, FileSystemView.getFileSystemView());
881 }
882 return new HashSet<File>();
883 }
884
885 /**
886 * Uncompresses a ZIP or JAR file into a given directory. Duplicated files will

Callers 3

compressMethod · 0.95
getClipboardImageMethod · 0.45
pasteMethod · 0.45

Calls 2

recursiveGetDirectoryMethod · 0.95
existsMethod · 0.80

Tested by

no test coverage detected