Adds stat method to FileAdapter. Needed to support libraries such as Curl.