Added get_hierarchy_path function to create path names for folders with large amount of files