Permission check with Files example