added components and up/down methods on FilePath/DirPath