MCPcopy Create free account
hub / github.com/BaseXdb/basex / dir

Method dir

basex-core/src/main/java/org/basex/query/func/db/DbList.java:72–75  ·  view source on GitHub ↗

Creates a directory element. @param path path @param mdate modified date @return resource node

(final String path, final long mdate)

Source from the content-addressed store, hash-verified

70 * @return resource node
71 */
72 static FNode dir(final String path, final long mdate) {
73 final String date = DateTime.format(new Date(mdate));
74 return FElem.build(Q_DIR).text(path).attr(Q_MODIFIED_DATE, date).finish();
75 }
76
77 /**
78 * Creates a resource element.

Callers 5

valueMethod · 0.45
getMethod · 0.45
elemMethod · 0.45
itemMethod · 0.45
copyMethod · 0.45

Calls 5

formatMethod · 0.95
buildMethod · 0.95
finishMethod · 0.45
attrMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected