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. lib/
  2. src/
  3. .buckconfig
  4. .gitignore
  5. .mailmap
  6. BUCK