Skip to content

Commit

Permalink
Update FileTree.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtsphereOfficial authored Aug 4, 2024
1 parent c59e57f commit 3c07386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filetree/src/main/kotlin/com/zyron/filetree/FileTree.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class FileTree(private val context: Context, private val rootDirectory: String)
private val nodes: MutableList<FileTreeNode> = mutableListOf()
private val expandedNodes: MutableSet<FileTreeNode> = mutableSetOf()
private var adapterUpdateListener: FileTreeAdapterUpdateListener? = null
private var loading = false
private val scope = CoroutineScope(Dispatchers.IO + SupervisorJob())
private var loading = false

init {
initializeFileTree {
val file = File(rootDirectory)
val rw = file.canRead() && file.canWrite()
if (!file.exists() || !rw){
Expand Down

0 comments on commit 3c07386

Please sign in to comment.