Added isDirectory to thBase.file