method openFolder extracted