get_path_segment function

Extract Specific Segments from File Paths