browse-v2
Zlatin Balevsky 2022-08-28 01:23:54 +01:00
parent 1d8f0f74af
commit ebecc34868
No known key found for this signature in database
GPG Key ID: A72832072D525E41
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ class BrowseManager {
String first = path.getName(0)
String[] more = new String[path.getNameCount()]
for (int i = 1; i < path.getNameCount(); i ++)
more[i - 1] = path.getName(i)
more[i - 1] = path.getName(i).toString()
more[more.length - 1] = sf.getFile().getName()
path = Path.of(first, more)
}

View File

@ -122,7 +122,7 @@ class BrowseSession implements Runnable {
JsonSlurper slurper = new JsonSlurper()
DataInputStream dis = new DataInputStream(new GZIPInputStream(is))
UIResultEvent[] batch = new UIResultEvent[Math.min(BATCH_SIZE, results)]
UIResultEvent[] batch = new UIResultEvent[Math.min(BATCH_SIZE, files)]
int j = 0
for (int i = 0; i < files; i ++) {
if (closed)