MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / makeFilenameFor

Method makeFilenameFor

src/main/java/fieldbox/io/IO.java:776–778  ·  view source on GitHub ↗
(String defaultSubDirectory, Filespec f, Box box)

Source from the content-addressed store, hash-verified

774
775 private String makeFilenameFor(String defaultSubDirectory, String defaultSuffix, String defaultName, Box box) {
776
777 String name = box.properties.get(Box.name);
778 if (name == null) name = "untitled_box";
779
780 String suffix = defaultName + (defaultSuffix == null ? "" : defaultSuffix);
781 name = safe(name + suffix);

Callers 1

makeDataFilenameForMethod · 0.95

Calls 8

safeMethod · 0.95
filenameForMethod · 0.95
padMethod · 0.95
relativizeMethod · 0.95
getDefaultSuffixMethod · 0.80
existsMethod · 0.80
getMethod · 0.65
lengthMethod · 0.45

Tested by

no test coverage detected