From: Lothar Scholz Date: 2003-07-19T20:54:57+09:00 Subject: Removing ".." and "." from a file path I only found the "File.expand_path" function to make a relative into an absolute path, but what about the ".." and "." components. I need a canonical version of a file path, so a function that would also remove adjacent '/' or '\' and transform to the corresponding OS path separator would be the best. Is there anything like this available ?