added filterHidden methods to FilePath, DirPath