Save logs by folder
This commit is contained in:
parent
18c3bb426f
commit
13a8dd7685
|
|
@ -112,7 +112,7 @@ class ConfigFileManager {
|
||||||
private static void putFds(Map<String, ParcelFileDescriptor> map, Path path) throws IOException {
|
private static void putFds(Map<String, ParcelFileDescriptor> map, Path path) throws IOException {
|
||||||
Files.walkFileTree(path, new SimpleFileVisitor<>() {
|
Files.walkFileTree(path, new SimpleFileVisitor<>() {
|
||||||
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
|
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
|
||||||
var name = path.relativize(file).toString();
|
var name = path.getParent().relativize(file).toString();
|
||||||
var fd = ParcelFileDescriptor.open(file.toFile(), ParcelFileDescriptor.MODE_READ_ONLY);
|
var fd = ParcelFileDescriptor.open(file.toFile(), ParcelFileDescriptor.MODE_READ_ONLY);
|
||||||
map.put(name, fd);
|
map.put(name, fd);
|
||||||
return FileVisitResult.CONTINUE;
|
return FileVisitResult.CONTINUE;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue