Skip to content

Commit

Permalink
Update DocumentsTree.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Feb 20, 2025
1 parent 13f3332 commit 5d6b1ff
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ class DocumentsTree {
return parent.findChild(filename)
}

// refreshes a specific directory
@Synchronized
fun refreshDirectory(filepath: String): Boolean {
val node = resolvePath(filepath) ?: return false
if (!node.isDirectory) return false
structTree(node)
return true
}

/**
* Construct current level directory tree
*
Expand Down

0 comments on commit 5d6b1ff

Please sign in to comment.