File::tryOpen
authorTom Jackson <tjackson@fb.com>
Tue, 5 Mar 2013 19:05:28 +0000 (11:05 -0800)
committerJordan DeLong <jdelong@fb.com>
Tue, 19 Mar 2013 00:08:16 +0000 (17:08 -0700)
commit9d6c66ddc8f6f38eef4c6f1c09abb3b30f888057
tree18d6c24b89cbf4fba70d9499daf75b27e5a40ae4
parent9d7cc509a90f551b1db5906895997146bc923a57
File::tryOpen

Summary:
Now that we have truthy files, it would be nice to be able to simply
//try// opening files and return a possibly-initialized File.

Test Plan: Unit tests

Reviewed By: chaoyc@fb.com

FB internal diff: D726916
folly/File.cpp
folly/File.h
folly/test/FileTest.cpp