Use path.toFile().exists() instead of Files.exists(path)

According to SonarQube:
The Files.exists method has noticeably poor performance in JDK 8, and
can slow an application significantly when used to check files that
don't actually exist. The same goes for Files.notExists,
Files.isDirectory and Files.isRegularFile.

Change-Id: I061630e5ba7daeccb4576dc6317230d960006716
1 file changed
tree: 7b1cdb0d0f1f377fd12720410fccd2d442c5d7c3
  1. .buckconfig
  2. .gitignore
  3. .mailmap
  4. BUCK
  5. lib/
  6. src/