MCPcopy Create free account
hub / github.com/apache/ant / normalizeFileName

Method normalizeFileName

src/main/org/apache/tools/tar/TarEntry.java:1032–1069  ·  view source on GitHub ↗

Strips Windows' drive letter as well as any leading slashes, turns path separators into forward slashes.

(String fileName,
                                            boolean preserveLeadingSlashes)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TarEntryMethod · 0.95
setNameMethod · 0.95

Calls 6

substringMethod · 0.80
indexOfMethod · 0.80
getPropertyMethod · 0.65
lengthMethod · 0.45
containsMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected