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