Commit dbf0d278 authored by Sébastien Toque's avatar Sébastien Toque
Browse files

Skip some system folders

parent 1e7a2fcd
......@@ -205,6 +205,10 @@ public class MediaLibrary {
String dirPath = dir.getAbsolutePath();
File[] f = null;
// Skip some system folders
if (dirPath.startsWith("/proc/") || dirPath.startsWith("/sys/") || dirPath.startsWith("/dev/"))
continue;
// Do not scan again if same canonical path
try {
dirPath = dir.getCanonicalPath();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment