Added: function to get folder name