Fix a problem where using a non-string value for path caused all files to be deleted.
Merge pull request #1798 from elinw/jfolderdelete

Fix a problem where using a non-string value for path caused all files t...