show error message and add safety check
Merge pull request #4539 from adobe/jeff/issue-4456

Show Error when unable to modify a folder