OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:pathtorelativize
(Results
1 - 1
of
1
) sorted by null
/external/smali/util/src/main/java/org/jf/util/
PathUtil.java
47
public static String getRelativePath(String basePath, String
pathToRelativize
) throws IOException {
54
new File(
pathToRelativize
).getCanonicalFile());
59
ArrayList<String>
pathToRelativize
= getPathComponents(canonicalFileToRelativize);
63
if (!basePath.get(0).equals(
pathToRelativize
.get(0))) {
70
for (commonDirs=1; commonDirs<basePath.size() && commonDirs<
pathToRelativize
.size(); commonDirs++) {
71
if (!basePath.get(commonDirs).equals(
pathToRelativize
.get(commonDirs))) {
88
for (int i=commonDirs; i<
pathToRelativize
.size(); i++) {
98
sb.append(
pathToRelativize
.get(i));
Completed in 208 milliseconds