MCPcopy Create free account
hub / github.com/ReZeroS/git / createFile

Method createFile

src/main/java/club/qqtim/util/FileUtil.java:89–91  ·  view source on GitHub ↗
(String fileContents, String fileName)

Source from the content-addressed store, hash-verified

87 }
88
89 public static void createFile(String fileContents, String fileName) {
90 createFile(fileContents.getBytes(StandardCharsets.UTF_8), fileName);
91 }
92
93 public static void createFile(byte[] fileContents, String fileName) {
94 File hashObject = new File(fileName);

Callers 7

addFilesMethod · 0.95
readTreeMethod · 0.95
checkoutIndexMethod · 0.95
readTreeMergedMethod · 0.95
hashObjectMethod · 0.95
updateRefMethod · 0.95
initIndexMethod · 0.95

Calls 3

createParentDirsMethod · 0.80
errorMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected