you need permission to perform this action copy paste code example Example: windows folder needs permissions treeView.dataSource.read();