Skip to content

Commit 2c09e8d

Browse files
committed
Debug FileUtils
1 parent 50cc0cd commit 2c09e8d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ru/nsu/ccfit/zuev/osu/helper/FileUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public static File[] listFiles(File directory, String[] endsWithExtensions) {
179179

180180
public static File[] listFiles(File directory, FileFilter filter) {
181181
File[] filelist = null;
182-
/* if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
182+
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
183183
LinkedList<File> cachedFiles = new LinkedList<File>();
184184
DirectoryStream.Filter<Path> directoryFilter = new DirectoryStream.Filter<Path>() {
185185
@Override
@@ -195,9 +195,9 @@ public boolean accept(Path entry) {
195195
Debug.e("FileUtils.listFiles: " + err.getMessage(), err);
196196
}
197197
filelist = cachedFiles.toArray(new File[cachedFiles.size()]);
198-
}else { */
198+
}else {
199199
filelist = directory.listFiles(filter);
200-
// }
200+
}
201201
return filelist;
202202
}
203203

0 commit comments

Comments
 (0)