MCPcopy Create free account
hub / github.com/afkT/DevUtils / fromFile

Method fromFile

lib/DevApp/src/main/java/dev/utils/app/UriUtils.java:129–131  ·  view source on GitHub ↗

通过 File Path 创建 Uri @param filePath 文件路径 @return Uri

(final String filePath)

Source from the content-addressed store, hash-verified

127 * @return {@link Uri}
128 */
129 public static Uri fromFile(final String filePath) {
130 return fromFile(FileUtils.getFile(filePath));
131 }
132
133 /**
134 * 通过 File 创建 Uri

Callers 4

createUriByPathMethod · 0.95
createUriByFileMethod · 0.95
ofUriMethod · 0.95
fromFileMethod · 0.95

Calls 3

getFileMethod · 0.95
eTagMethod · 0.95
fromFileMethod · 0.65

Tested by

no test coverage detected