modification of get_community_file function to be able to chose the subfolder in which we want to create file