Add get parent method in folders tree