Avoid creating file without protection (Swift) | CAST Appmarq