fix file or dir