Merge "Do not scan a file which cannot be read"
This commit is contained in:
@@ -1390,7 +1390,7 @@ public class MediaScanner
|
|||||||
prescan(path, true);
|
prescan(path, true);
|
||||||
|
|
||||||
File file = new File(path);
|
File file = new File(path);
|
||||||
if (!file.exists()) {
|
if (!file.exists() || !file.canRead()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user