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