FLEX-34446 give warning when trying to write to director you don't have permission to do so