Make filemode preservation optional, default false