a class to handle the "."&".." in the filepath