Where's the tree list/folder/project you want to refresh?
Are you talking about the operating system file explorer? your
IDE? an application you've developed?
I assume you're talking about the operating system file explorer - there probably isn't a way to do this through
Java... the actual file/directory is being created, it's just the file explorer view that's not updating to show it.
What OS are you using? If I search Google for
"Windows file explorer doesn't refresh when new file" most of the top results are for some issues with Windows 7.