MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / formatUri

Method formatUri

src/plugins/sdcard/src/android/SDcard.java:199–211  ·  view source on GitHub ↗
(String filename)

Source from the content-addressed store, hash-verified

197 }
198
199 private String formatUri(String filename) {
200 if (filename.contains(SEPARATOR)) {
201 String splittedStr[] = filename.split(SEPARATOR, 2);
202 String rootUri = splittedStr[0];
203 String docId = splittedStr[1];
204
205 Uri uri = getUri(rootUri, docId);
206
207 return uri.toString();
208 } else {
209 return filename;
210 }
211 }
212
213 private void watchFile(
214 final String fileUri,

Callers 2

executeMethod · 0.95
runMethod · 0.95

Calls 2

getUriMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected