create file or dir