giving array of directories as title instead of path when creating directory tree