print $uri->path_segments( grep { $_ } $uri->path_segments, $file );