Avoid OS X sandbox messages when just checking if a pathname is a directory
Avoid OS X sandbox messages when just checking if a pathname is a directory

Calling stat() on an arbitrary directory doesn't cause any sandbox
violation, it seems, even if the process has no access to that
directory. Calling opendir() on it is a sandbox violation.

Change-Id: I776c04653cbeeb511a4a1e455fcc2b10ed4a0e5c

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core