We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac872f8 commit ed848ebCopy full SHA for ed848eb
lib/utilcode/src/main/java/com/blankj/utilcode/util/UriUtils.java
@@ -77,6 +77,17 @@ public static File uri2File(final Uri uri) {
77
return copyUri2Cache(uri);
78
}
79
80
+ /**
81
+ * Uri to file, without creating the cache copy if the path cannot be resolved.
82
+ *
83
+ * @param uri The uri.
84
+ * @return file
85
+ */
86
+ public static File uri2FileNoCacheCopy(final Uri uri) {
87
+ if (uri == null) return null;
88
+ return uri2FileReal(uri);
89
+ }
90
+
91
/**
92
* Uri to file.
93
*
0 commit comments