MCPcopy Create free account
hub / github.com/M66B/FairEmail / sanitizeFilename

Method sanitizeFilename

app/src/main/java/eu/faircode/email/Helper.java:2901–2909  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

2899 }
2900
2901 static String sanitizeFilename(String name) {
2902 if (name == null)
2903 return null;
2904
2905 return name
2906 // Canonical files names cannot contain NUL
2907 .replace("\0", "")
2908 .replaceAll("[?:\"*|/\\\\<>]", "_");
2909 }
2910
2911 static String getExtension(String filename) {
2912 if (filename == null)

Callers 9

processUriMethod · 0.95
onStoreRawMethod · 0.95
_getMethod · 0.95
_shareMethod · 0.95
onExecuteMethod · 0.95
onExecuteMethod · 0.95
migrateMethod · 0.95
getFileMethod · 0.95

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected