magnusja / libaums

Open source library to access USB Mass Storage devices on Android without rooting your device
Apache License 2.0
1.26k stars 270 forks source link

multithreading support #320

Open lzxshare opened 2 years ago

lzxshare commented 2 years ago

i got exception when i use multithreading to transfer files

java.util.ConcurrentModificationException at java.util.ArrayList$Itr.next(ArrayList.java:860) at com.github.mjdev.libaums.fs.fat32.FatDirectory.write$libaums_release(FatDirectory.kt:289) at com.github.mjdev.libaums.fs.fat32.FatDirectory.createFile(FatDirectory.kt:319) at com.github.mjdev.libaums.fs.fat32.FatDirectory.createFile(FatDirectory.kt:36)

So far, does libaums support multithreading? multithreading can greatly improve the transmission speed, which is very useful in some scenarios. multithreading support Will it be released as a new feature in the next release?