MCPcopy Create free account
hub / github.com/PCGen/pcgen / getWindowsSafeFilename

Method getWindowsSafeFilename

code/src/java/pcgen/io/PCGFile.java:168–171  ·  view source on GitHub ↗

It may turn out to be the case that this should be optimized further to pull out the extension, but there doesn't seem to be such high use of filename checking to warrant further tinkering. @param file The filename to sanitise. @return windows safe file name

(final File file)

Source from the content-addressed store, hash-verified

166 * @return windows safe file name
167 */
168 private static String getWindowsSafeFilename(final File file)
169 {
170 return file.getName().toLowerCase();
171 }
172}

Callers 5

isPCGenCharacterFileMethod · 0.95
isPCGenPartyFileMethod · 0.95
isPCGenCampaignFileMethod · 0.95
isPCGenListFileMethod · 0.95

Calls 1

getNameMethod · 0.65

Tested by

no test coverage detected