add file tree asynchronously when init index