GetFile is permissions preserving + minor changes